Hi,
I am using the AWS inventory script but I need a way to select groups of hosts based on a shared set of tags. I.e many hosts might share the same Project tag but of that group only a few would share the same Product tag however, the Product tag may also contain some hosts from other Projects.
As such I need the hosts which I am acting on to be a subset of these two (actually i am basing it off of three tags but I hope two is enough for the example)
I tried the following in my playbook
hosts: “[tag_Product=xxx, tag_Project=yyy]”
Regards
Mark