Ansible boasts the forks (process) approach where you can run the same plays on multiple hosts. But what I'm looking for is true multi-threading where multiple sections of the code can run asynchronously and in ANY order depending on what's ready when when you have to wait for say, AWS modules that create resources: RDS and AMI. I'm not sure the async with poll and async_status options can give you this capability but I seriously hope so, the documentation is rather vague: http://docs.ansible.com/ansible/playbooks_async.html http://docs.ansible.com/ansible/async_status_module.html
On Tuesday, July 16, 2013 at 7:38:53 AM UTC-7, Istdb wrote: > > Dear all! > > I'm in the process of exploring ansible and already found it pretty cool. > > There is one thing, however, which I could not figure out: parallel > execution. > > I have a simple play: > > - hosts: all > # serial: 5 > tasks: > - name: parallel > command: sleep 10 > > Which I try to run with 'ansible-playbook -f 20 -i infra > ./paralell-test.ymll' > > It seems that the commands are executed in sequential order on all hosts > set in the inventory, independently if I give or set the -f or the serial: > parameter. > > Any clues how to enable parallel task execution? > > I'm using 1.2.1. > > Thanks! > -- You received this message because you are subscribed to the Google Groups "Ansible Project" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/ansible-project/91b09d6c-99e2-40dd-9efb-10133dffa86b%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.
