Need to know if Ansible has capablity for parallel execution

31 views
Skip to first unread message

ashish chanda

unread,
Aug 20, 2017, 11:51:40 PM8/20/17
to Ansible Project
Good Morning,

So the scenario is:
I have 2 VM's on which i want to install linux parallely without waiting on one task to get completed. Is there a way in Ansible Playbooks to achieve this.
I know ansible playbooks has tasks which are executed simultaneously(one after another) but would like to know if we have something to run in parallel. If the answer is YES can you give me a small example.

Thanks,
Ashish Chanda

Dick Visser

unread,
Aug 21, 2017, 1:29:14 AM8/21/17
to ansible...@googlegroups.com
I think you want to use the 'free' strategy:


Dick


--
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 ansible-proje...@googlegroups.com.
To post to this group, send email to ansible...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/ansible-project/ed54e4fd-65ca-4e45-8b97-de3b58b44021%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
--
Dick Visser
GÉANT

Want to join us? We're hiring: https://www.geant.org/jobs

J Hawkesworth

unread,
Aug 21, 2017, 4:43:09 AM8/21/17
to Ansible Project
There are various tricks for parallel running of playbooks:


See slide 19 onwards

In the end I wound up using an external tool - lots of options there too.  There's a (closed) discussion on this topic here: https://github.com/ansible/proposals/issues/31
Reply all
Reply to author
Forward
0 new messages