Hi,

that is how ansible works, plays are run in order and paralelism is on play
level. I would consider to make several groups in your inventory:

---
- hosts: group1
  roles:
    - role1

- hosts: group2
  roles:
    - role2

- hosts: group3
  roles:
    - role3
    - role5

this way at least role1 will be parallelized.

David

2014-09-19 20:25 GMT+02:00 Mzp45 <[email protected]>:

> Hello,
> I have a playbook where the hosts are listed by name instead of "all".
>
> ---
> - hosts: host1
>   roles:
>      - role1
>      - role2
>
> - hosts: host2
>      - role 1
>      - role 3
>      - role 5
>
> and so on
>
> However this doesn't help with the forking as it will only execute one
> host at a time. Is there a way to set it to fork when the playbook is
> arranged out in this manner?
>
> 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/462fb88e-f33a-4f95-8916-648b371dae34%40googlegroups.com
> <https://groups.google.com/d/msgid/ansible-project/462fb88e-f33a-4f95-8916-648b371dae34%40googlegroups.com?utm_medium=email&utm_source=footer>
> .
> For more options, visit https://groups.google.com/d/optout.
>



-- 
David Karban
Specialista na správu linuxových serverů
www.karban.eu

-- 
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/CAOBFM95wKrYx%3D-9pypztDySxPfuTAbp6WrU1-FCE0OYhzntX2A%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to