How do you align Ansible runs with change management and maintenance windows?
IntermediateProductionRolling Updates, Delegation and Safe Deployments
Answer
Run prod changes through AWX/AAP or CI with an approval node (workflow approval) tied to the change ticket. Schedule jobs inside the window, and set a job timeout so it cannot overrun into business hours.
Attach a --check --diff run to the change request so approvers see exactly what will change. Silence monitoring for the affected hosts at the start and remove the silence at the end (in always). Post start, finish and failure notifications to the team channel, so the on-call knows what is happening.
More on Rolling Updates, Delegation and Safe Deployments
How do you do a rolling update with Ansible?BeginnerWhat forms can `serial` take?IntermediateShow the standard pattern for a zero-downtime rolling deploy behind a load balancer.IntermediateWhy do you add a health check inside the deployment play?BeginnerHow do `any_errors_fatal` and `max_fail_percentage` help a rollout?BeginnerHow do you do a canary deployment?Intermediate