One simple way is to put the tasks in separate playbooks, then:

ansible-playbook [...opts...] a.yml > a.out 2>&1 &
ansible-playbook [...opts...] b.yml > b.out 2>&1 &
ansible-playbook [...opts...] c.yml > c.out 2>&1 &
ansible-playbook [...opts...] d.yml > d.out 2>&1 &

Or if you are doing things manually, run them in separate terminals.

Regards, K.


On Tue, Aug 7, 2018 at 4:34 PM, Saurabh <[email protected]> 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/73c9222d-208a-4e81-ae20-94fa08fdc453%40googlegroups.
> com
> <https://groups.google.com/d/msgid/ansible-project/73c9222d-208a-4e81-ae20-94fa08fdc453%40googlegroups.com?utm_medium=email&utm_source=footer>
> .
> For more options, visit https://groups.google.com/d/optout.
>



-- 
Karl Auer

Email  : [email protected]
Website: http://2pisoftware.com

GPG/PGP : 958A 2647 6C44 D376 3D63 86A5 FFB2 20BC 0257 5816
Previous: F0AB 6C70 A49D 1927 6E05 81E7 AD95 268F 2AB6 40EA

-- 
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/CA%2B%2BT08SsJdRi_vHVUNrGBZM4%2BXUMvReAc_tkA-gfhn280Ey2UA%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to