Ansible & Configuration
Rolling updates
Roll a change through an Ansible fleet in batches with serial, so part of the service keeps answering while each group updates, and a drain step keeps traffic away from restarting hosts.
What you will be able to do
- Explain how serial splits a play into batches and what each batch runs.
- Decide the batch size and drain steps for a rollout from the load balancer's capacity.
What is in the lesson
- A real situation where this goes wrong
- How it works, step by step
- A walkthrough with commands you can run
- How it fails in production, and how to tell
- Three quiz questions with explanations
Read this lessonFree. No account needed.
More in Ansible & Configuration
- Tags and limitsAdvanced · 4 min
Explain how --limit filters hosts and tags filter tasks, and why each one can select more or less than expected. Listing hosts and tasks before a run shows the real…
- Diff modeAdvanced · 4 min
Explain how check mode and diff mode show the file changes a run would make, without writing them. Reviewing one host's diff before a wider rollout catches surprises…
- serial batchesAdvanced · 4 min
Read serial values, percentages and failure thresholds together, so you know which hosts have already changed when a play stops during a rollout, and how percentage…
- Failure rescue blocksAdvanced · 4 min
Use block, rescue and always to run recovery steps when a task fails, and treat a rescued host in the run recap as a problem to check before the release is called done.
- Ansible factsAdvanced · 4 min
Read Ansible facts through ansible_facts, know when gather_facts is off, and check the fact a condition reads before trusting its branch on each host, using a debug…
- Performance tuningAdvanced · 4 min
Measure task time first, then change forks, pipelining or fact gathering one at a time, and watch control node load and shared services, so a faster run does not hide a…