Interview Prep/Ansible/Project Structure and Design

How do you release and promote Ansible changes across environments?

AdvancedProductionProject Structure and Design
Answer

Treat the repo as a versioned artifact. A merge to main is tagged (v2025.11.3), and the pipeline promotes the same tag through dev, stage and prod, so what was tested is exactly what runs in prod. AWX project is pinned to the tag or commit SHA for prod, not the moving main branch.

Execution environment images are tagged in step with the code, so collection versions match. Rollback means re-running the previous tag, which works because plays are idempotent, though it does not undo non-reversible changes such as database migrations.

All Ansible questions Roadmap: Ansible

More on Project Structure and Design