For those wondering, yes it's possible as per Michael's pointer you can use
with_items, so one can do:
delegate_to: '{{ item }}'
with_items: groups('groupname')
where groupname can also be a (custom) fact or variable.
Op woensdag 10 september 2014 15:36:40 UTC+2 schreef Nico K.:
>
> In my hosts file I have a group defined called 'live' for example.
>
> [live]
> myhost1.example.com
> myhost2.example.com
>
> I want to delegate_to: live
>
> Is that possible?
>
>
>
>
--
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/d24dc4c2-fde1-455b-be78-7c04cc6b114c%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.