Created
September 27, 2014 22:10
-
-
Save jeremypruitt/d973fabe87c3a57a6d8c to your computer and use it in GitHub Desktop.
Loop over AWS hosts in a jinja2 template with Ansible
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{% for host in hosts['tag_Name_' + application.name + '-' + Version %} | |
IP: {{ hostvars[host] }} | |
{% endfor %} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment