Interview Prep/Ansible/Rolling Updates, Delegation and Orchestration

Your rolling update stopped halfway because of a failure. How do you finish safely?

AdvancedScenarioRolling Updates, Delegation and Orchestration
Answer

Situation read → Partial rollout, mixed versions.

What I'd do →

  1. Identify updated vs pending hosts from the PLAY RECAP or a version check.
  2. Fix the root cause.
  3. Re-run limited to the remaining hosts.
  4. Confirm the final version everywhere.
ansible web -m ansible.builtin.command -a "/opt/app/bin/app --version" -o
ansible-playbook deploy.yml --limit @/tmp/pending.txt

Why → An idempotent play skips hosts that are already correct.

Interview tip → Design for mixed-version tolerance during rollouts.

All Ansible questions Roadmap: Ansible

More on Rolling Updates, Delegation and Orchestration