Skip to content

Instantly share code, notes, and snippets.

@eliotk
Created February 6, 2015 22:20
Show Gist options
  • Save eliotk/93f6b49a208b1e7d6999 to your computer and use it in GitHub Desktop.
Save eliotk/93f6b49a208b1e7d6999 to your computer and use it in GitHub Desktop.
ansible: iterate through list of values in a jinja template
{% for k,v in hostvars[inventory_hostname].iteritems() %}
{{ k }}: {{ v }}
{% endfor %}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment