forks & Parallelism Tuning
Scale how many hosts run at once.
One at a Time Is Slow
By default Ansible touches only a handful of hosts at once. Across hundreds of servers, that serial pace turns a quick play into a long wait. ⏳
Meet the forks Setting
The forks value sets how many hosts Ansible drives in parallel for each task. More forks means more machines working at the same moment.
All lessons in this course
- forks & Parallelism Tuning
- Strategies: linear, free & host_pinned
- SSH Pipelining & Connection Reuse
- serial & Rolling Batch Execution