groups['groupname']

is a list of all hosts in a group, so

with_items: groups['groupname']

will do it.




On Thu, Aug 28, 2014 at 1:33 AM, Mikael Sandström <[email protected]> wrote:

> Thanks, I'll try that.
> So I guess I can somehow reference the hostgroup 'hosts'  (which was a
> stupid name even for an example...) in the with_items section then, since
> the number of servers may change?
>
> /M
>
> --
> 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/21b60cb2-f02c-4c35-9c0e-0ebc3511fbf6%40googlegroups.com
> .
> 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%2BnsWgxBiq8v59WoOnphM%3DWe--u-o1B8mpw80Yscs0On7-vPCA%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to