Interview Prep/Ansible/Testing, CI/CD and Quality

How do you run playbooks in CI with the same EE that production uses?

IntermediateProductionTesting, CI/CD and Quality
Answer

Use ansible-navigator with the EE image, so CI, laptops and AWX all execute with identical ansible-core, collections and Python libraries.

ansible-navigator run playbooks/site.yml \
  -i inventories/staging \
  --eei registry.example.com/ee-platform:1.8.0 \
  --pull-policy missing \
  --mode stdout \
  --check --diff

Commit an ansible-navigator.yml with the image and settings so nobody has to remember the flags. Alternatively run the EE image directly as the CI job container and call ansible-playbook inside it. Either way, the image tag in CI must match the one in the AWX job template.

All Ansible questions Roadmap: Ansible

More on Testing, CI/CD and Quality