Skip to content

Instantly share code, notes, and snippets.

@jlund
Created August 7, 2013 16:42
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jlund/6175780 to your computer and use it in GitHub Desktop.
Save jlund/6175780 to your computer and use it in GitHub Desktop.
Ansible: Using multiple arguments in with_items
---
- name: Echo some things!
command: echo {{ item.foo }} {{ item.bar }}
with_items: echo_arguments
---
echo_arguments:
- { foo: 'Hello', bar: 'World!' }
- { foo: 'Goodbye', bar: 'Caroline!' }
- { foo: 'Hello', bar: 'Ava!' }
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment