We don't put out dev/test/staging/prod servers all in one inventory file.  We 
have separate inventories for each individual "environment".

Additionally, we would target something like:

hosts: web

And then if we wanted to only target our web servers in "east", we would use 
--limit, such as:

ansible-playbook -i production --limit east some-playbook.yml

or even:

ansible-playbook -i production --limit web:&east some-playbook.yml

-- 
Matt Martz
[email protected]

On May 7, 2014 at 9:11:36 AM, Todd Sampson ([email protected]) wrote:

I'm a newcomer but there's one thing that bothers me.  It seems that plays 
always have the hosts to be acted on embedded in the play itself.  What if you 
wanted to run a play against different hosts?  For example, you might want to 
run the play against your test setup.  If all goes well, you might want to run 
it against your East servers and then to West and then...
--
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/a9e21c8b-468d-43ad-ac59-37ec08346aa9%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/etPan.536a41f0.6b8b4567.3b77%40mobiletuvix.rackspace.corp.
For more options, visit https://groups.google.com/d/optout.

Reply via email to