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 →
- Identify updated vs pending hosts from the PLAY RECAP or a version check.
- Fix the root cause.
- Re-run limited to the remaining hosts.
- 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.
More on Rolling Updates, Delegation and Orchestration
You must deploy a new app version to 40 web servers behind a load balancer with zero downtime.AdvancedWhat does `serial: [1, 5, "50%"]` do?BeginnerDuring a rolling update, 3 of 10 hosts in a batch fail. Does the play continue?IntermediateYou must restart database replicas one at a time but never the primary first.AdvancedYou need a task to run on the LB for every web host, without logging into each web host.IntermediateA shell command must run on localhost for each remote host, e.g. a CLI call to a cloud API.Beginner