you can delegate to multiple hosts, but not run them in paralell
- task:
delegate_to: "{{item}}"
with_items:
- host1
- host2
- host3
On Tue, Jan 26, 2016 at 2:21 PM, Abhishek R. <[email protected]> wrote:
> Hi,
>
> For plays, the "hosts" element accepts multiple hosts separated by colon.
> That is,
>
> hosts: "host1:host2:host3"
>
> - works. However, within a task, when delegating to other hosts, the same
> pattern does not seem to work. That is,
>
> delegate_to: "host1:host2:host3"
>
> - doesn't appear to work. I get a "ControlPath too long" error, possibly
> because ansible is interpreting the concatenated hosts as a single host.
>
> So, how do can a task be delegated to multiple hosts and run on them in
> parallel?
>
> Any insight into this is appreciated.
>
> Regards
>
> --
> 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/cfdb5e18-8b20-40a6-8c73-80dbfc1be52b%40googlegroups.com.
> For more options, visit https://groups.google.com/d/optout.
--
Brian Coca
--
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/CAJ5XC8n9jB0etAOYKZEtR2rx_7Oif%2BWEwCqu27uK5WGkRj_ahw%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.