Have you tried either one of the following? 1) adding tag to each yaml include file? Actually change the include to import_task and add a tag so you can run each yaml file using --tag with ansible-playbook i.e
instead of - include: a.yml - include: b.yml Do this - import_tasks: a.yml tags: a_yml - import_tasks: b.yml tags: b_yml ansible-playbook master_playbook.yml --tags a_yml & ansible-playbook master_playbook.yml --tags b_yml & 2) use async on each task - include: a.yml async: 360 poll: 0 - include: b.yml async: 360 poll: 0 using "poll: 0" mean it doesn't wait for a.yml to finish executing and it will immediately execute b.yml Regards, T On Monday, August 6, 2018 at 11:34:26 PM UTC-7, Saurabh wrote: > > Hi, > > I would like to execute parallel tasks ? > > Below Example > > - include: a.yml > > - include: b.yml > > a.yml runs and b.yml should also run, > > b.yml shouldn't wait for completion of a.yml. > > is there any way to run parallel tasks ? > > Thank you ! > > -- 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/23eb87cb-2a97-4826-84f1-163a502d2154%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.
