forks

The setting for how many hosts Ansible works on at the same time, using that many parallel worker processes on the control node.

In more detail

The default is 5. More forks can shorten a run across many hosts, but they add load on the control node and on shared services the hosts use. Measure a real workload before raising it, and keep the chosen value in ansible.cfg with a note on why.

Example

forks = 10

Related terms

Taught in

References

Certification courses