0Pricing
Ansible Academy · Lesson

serial & Rolling Batch Execution

Roll changes out in safe waves.

All at Once Is Risky

Updating every server in one sweep is fast, but a bad change can take down your whole fleet at the same instant. Rolling updates avoid that.

Meet serial

The serial keyword tells a play to work through hosts in batches instead of all together. You update a slice, then move to the next.

- hosts: web
  serial: 2

All lessons in this course

  1. forks & Parallelism Tuning
  2. Strategies: linear, free & host_pinned
  3. SSH Pipelining & Connection Reuse
  4. serial & Rolling Batch Execution
← Back to Ansible Academy