Interview Prep/Ansible/Rolling Updates, Delegation and Orchestration

During a rolling update, 3 of 10 hosts in a batch fail. Does the play continue?

IntermediateScenarioRolling Updates, Delegation and Orchestration
Answer

Situation read → Failure thresholds.

What I'd do → Check max_fail_percentage. Default behaviour: failed hosts drop out and the rest continue. If the failure percentage in a batch exceeds max_fail_percentage, the play stops for all hosts. any_errors_fatal: true stops everything on the first failure.

Why → Thresholds are evaluated per batch when serial is used.

Interview tip → A percentage of 0 means "any failure aborts".

All Ansible questions Roadmap: Ansible

More on Rolling Updates, Delegation and Orchestration