--- - hosts: localhost sudo: true tasks: - name: gather ec2 facts action: ec2_facts - name: get environment tag action: ec2_tag resource={{ ansible_ec2_instance_id }} region={{ ansible_ec2_placement_region }} state=list register: allTags - debug: var=allTags.tags.role roles: - { role: storm-configure, when: allTags.tags.role == 'storm' } - { role: nimbus, when: allTags.tags.role == 'nimbus' }
--
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 ansible-proje...@googlegroups.com.
To post to this group, send email to ansible...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/ansible-project/c9a9d771-af36-45dd-8ce9-371457dbe80f%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.