How do you promote the same tested change through dev, staging and prod using Git?
IntermediateScenarioPerformance, Testing and CI/CD
Answer
Situation read → Release process.
What I'd do → Trunk-based: merge to main, pipeline runs on staging automatically, a tag or manual approval triggers prod with the same commit and pinned requirements.
Why → The artefact (repo + pinned deps / EE image) is identical across environments; only inventory differs.
Interview tip → Avoid per-environment branches; they drift.
More on Performance, Testing and CI/CD
A playbook that touches 200 hosts takes 40 minutes. Where do you start tuning?IntermediateYou install 15 packages with a loop and it is slow.BeginnerHow would you test a role in CI before it reaches production?IntermediateWhat would a Molecule `verify.yml` check for an Nginx role?IntermediateMolecule's idempotence step fails. How do you find the offending task?IntermediateDesign a CI pipeline for an Ansible repo.Advanced