Hi,

Following 
the 
https://docs.ansible.com/ansible/intro_dynamic_inventory.html#using-multiple-inventory-sources
 
example, I have inventory file were I have defined my physical and aws 
servers using ec2 tags as a group in it :


# servers.txt :
"""""
[tag_Type_Web]

[web:children]
web01.example.com
web02.example.com
tag_Type_Web
"""""

For every ec2 instance I have a also an environment tag for prod , dev , qa 
etc.. Unfortunately I don't see how can I combine tags to run my playbooks, 
for example if I want to run a playbook separately against Web in 
production than Web in dev environment it seems like I have to define a tag 
by the name tag_Type_web_prod or tag_Type_web_dev hardcoding the values 
which is no efficient.

Is this the only way to do it or I'm missing something ? 


-- 
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/bade9315-ccf8-46cd-9315-9ebc525eeec8%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to