delegate_to does not take a list, but it takes a host name. You can use it with "with_items" and so on.
I didn't parse the part about "a group defined in 'hosts'" On Wed, Sep 10, 2014 at 9:24 AM, Nico K. <[email protected]> wrote: > Hi, > > Quick question, I'm defining a group variable to be 'delegate_group: test' > or "delegate_group: live' depending on the --limit clause used. > The variable is being properly defined (as can be seen with debug: > msg=""), however when I pass that variable to delegate_to: "{{ > delegate_group }}" it resolves to the value I filled in but it doesn't see > that this varialbe is actually a group defined in 'hosts'. > Is this behavior to be expected? If so, how does one approach a scenario > like this? > > Thanks, > Nico. > > -- > 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/f62e461c-038d-4305-b254-76a406d29f62%40googlegroups.com > <https://groups.google.com/d/msgid/ansible-project/f62e461c-038d-4305-b254-76a406d29f62%40googlegroups.com?utm_medium=email&utm_source=footer> > . > For more options, visit https://groups.google.com/d/optout. > -- 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%2BnsWgxsw9O0_q6niQ-i04ViHLHcSwcYiFokdFacwLKpFxQakg%40mail.gmail.com. For more options, visit https://groups.google.com/d/optout.
