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".
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?BeginnerYou 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.BeginnerA deployment should run strictly one host at a time, but fact gathering should not be slow.Intermediate