when: inventory_hostname in groups['frontendcluster1']

Also more easily written as:

when: inventory_hostname in groups.frontendcluster1




On Wed, Nov 27, 2013 at 3:00 PM, Khuong Dinh Pham <[email protected]>wrote:

> Hi
>
> Thx. Just what I need.
>
> It's because I have one playbook for my frontendservers hosts. This
> playbook include roles but only some of the tasks should be deploy on a
> subset of the frontendservers. i.e. part of frontendcluster01 group
>
> Den onsdag den 27. november 2013 20.46.31 UTC+1 skrev Brian Coca:
>
>> almost always better to do as mentioned above but if you
>> REAAAAAAALLLLYYYY need it:
>>
>>     when: inventory_hostname in groups['frontendcluster1']
>>
>>  --
> 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].
> For more options, visit https://groups.google.com/groups/opt_out.
>



-- 
Michael DeHaan <[email protected]>
CTO, AnsibleWorks, Inc.
http://www.ansibleworks.com/

-- 
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].
For more options, visit https://groups.google.com/groups/opt_out.

Reply via email to