On Mon, 02 Feb 2015 13:57 -0800, Mark Olliver <[email protected]> wrote: > 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]"
hosts: tag_Product_xxx:&tag_Project_yyy http://docs.ansible.com/intro_dynamic_inventory.html#static-groups-of-dynamic-groups Giovanni -- 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/1422963237.3355888.222427741.6131AC11%40webmail.messagingengine.com. For more options, visit https://groups.google.com/d/optout.
