Good clue, Steve. Thanks. Got me thinking, I'm using the EC2 external inventory script, so from the variable list here http://docs.ansible.com/ansible/intro_dynamic_inventory.html#example-aws-ec2-external-inventory-script
This worked when: ec2_tag_Application == 'my_app' On Tuesday, April 12, 2016 at 2:58:39 PM UTC-7, Stephen Granger wrote: > > http://docs.ansible.com/ansible/ec2_tag_module.html > > You will need to "list" the tags first of the instance to see what tags > are set. > > Something like > > when: ec2_tags.tags.Application == 'my_app' > > should give you what you want. > > -- > Steve > -- 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/f788682a-faea-443b-8a6c-4e24b6137f95%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.
