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
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 ?