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

python - Operations inside variables -

Generic Map Parameter java -

arrays - What causes a java.lang.ArrayIndexOutOfBoundsException and how do I prevent it? -