wait - Move onto next task in ansible without waiting for other hosts to finish that task -


so have noticed in ansible playbooks, if target multiple hosts same playbook each task must complete hosts before moves onto next task.

is possible define playbook such task, upon completion run following task without having wait task finish on of other hosts?

this behaviour of ansible can controled playbook strategies.

the default strategy linear strategy:

all hosts run each task before host starts next task, using number of forks (default 5) parallelize.

another strategy available free:

a second strategy ships ansible free, allows each host run until end of play fast can.:

set strategy this:

- hosts:   strategy: free   tasks: 

if not possible use free strategy set batches serial directive.


Comments

Popular posts from this blog

ubuntu - PHP script to find files of certain extensions in a directory, returns populated array when run in browser, but empty array when run from terminal -

php - How can i create a user dashboard -

javascript - How to detect toggling of the fullscreen-toolbar in jQuery Mobile? -