Interview Prep/Ansible/Rolling Updates, Delegation and Safe Deployments

How do `any_errors_fatal` and `max_fail_percentage` help a rollout?

BeginnerProductionRolling Updates, Delegation and Safe Deployments
Answer

They define when a failing rollout should stop. max_fail_percentage: 0 (with serial) aborts after a batch where any host failed. any_errors_fatal: true stops the entire play on any failure, including within a batch.

For a stateless web tier, serial: "25%" with max_fail_percentage: 0 is a safe default. For a database cluster use serial: 1 and any_errors_fatal: true. Hosts that already got the change remain changed, so the rollback plan still matters.

All Ansible questions Roadmap: Ansible

More on Rolling Updates, Delegation and Safe Deployments