Ansible - Getting Started with Task Execution (Parallelism)

Parallelism is the concept of numerous managed nodes executing the tasks in a playbook simultaneously. For example, let's say you have 5 managed nodes defined in your inventory, server1 through server5. The default behavior is that server1 through server5 will go through the tasks in the playbook in parallel (simultaneously). Each tasks in the playbook will be completed on all of the managed nodes before moving onto the next task in the playbook.



This behavior can be adjusted, using the following controls.

  • Forks - set a limit on the number of managed nodes that will processes a playbook simultaneously
  • Strategy (debugfreehost_pinnedlinear)
  • Serial - set a limit on the number or percentage of managed nodes that will process a playbook simultaneously
  • Throttle - set a limit on the number of managed nodes that will process a task simultaneously


Add a Comment




We will never share your name or email with anyone. Enter your email if you would like to be notified when we respond to your comment.





Please enter bebe9 in the box below so that we can be sure you are a human.




Comments

Web design by yours truely - me, myself, and I   |   jeremy.canfield@freekb.net   |