Is there a way to pass the value of an ec2 tag to a conditional in an ansible task? Boto is installed and used to determine which tagged ec2 servers the playbook is run against.
For example:
ec2 server with tag name “Application” and value “my_app”
ansible command to run a playbook
$ AWS_PROFILE=paul-dev ansible-playbook playbooks/paul_test.yml -i inventories/ec2.py -l 'tag_Environment_dev:&tag_Application_my_app' -e "app=my_app" -u ubuntu -s
works for the simple playbook containing this task because of the extra variable “app=my_app” on the commandline.
`