I don't know that there is a right or wrong way to do inventory, but I 
wouldn't do it like that.  :-)

Given that you have two environments that might be two groups...  But if 
there is nothing in common between the hosts in an environment then that 
may not be the case.

I would take your hosts and see what they have in common....

If for example you have two web servers, four application servers and two 
of your application servers also run databases then that looks like three 
clear groups...

[Web]
host1
host2

[App]
host3
host4
host5
host6

[DB]
host5
host6

If the environments share some things but are different for some things 
then you might also want environment groups

[test1]
host1
host3
host5

[test2]
host2
host4
host6

...  Then use the group_vars files to set the variables that you want 
ansible to apply.

I hope that this helps,
  Adam

-- 
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/e310c612-a204-4095-aa01-3386614fdd20%40googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.

Reply via email to