Take a look at --limit to refine execution to a specific subgroup, or
additional parameters on the host specifier like:

- hosts: webservers:&phoenix

To select all webservers in phoenix

--limit phoenix does the same thing as adding ":&phoenix" to all host
specifiers.




On Wed, Aug 27, 2014 at 5:25 AM, Jordi Funollet <funol...@fastmail.fm>
wrote:

> But then I miss the ability to run a task in a group of a specific
> environment (say, just on production hosts of group 'dbservers' ). Am I
> right? Or is there a way to express this?
>
> --
> Jordi Funollet Pujol
> http://www.linkedin.com/in/jordifunollet
>
> --
> 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 ansible-project+unsubscr...@googlegroups.com.
> To post to this group, send email to ansible-project@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/ansible-project/1409131539.961708.157261905.26150BFC%40webmail.messagingengine.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 ansible-project+unsubscr...@googlegroups.com.
To post to this group, send email to ansible-project@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/ansible-project/CA%2BnsWgwG7Yxa6yQLXei6SU%2BAFFUp8Jez-%2B4cfoPw0rVh3UqoxQ%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to