Skip to content

Instantly share code, notes, and snippets.

@dmac
Created October 15, 2013 18:25
Show Gist options
  • Save dmac/6996258 to your computer and use it in GitHub Desktop.
Save dmac/6996258 to your computer and use it in GitHub Desktop.
ansible dict iteration
---
- hosts: localhost
vars:
- foo:
a: 1
b: 2
c: 3
tasks:
- debug: msg="{{ item }} is {{ foo[item] }}"
with_items: foo|list
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment