Skip to content

Instantly share code, notes, and snippets.

@jlund
Created August 7, 2013 16:42
Show Gist options
  • Select an option

  • Save jlund/6175780 to your computer and use it in GitHub Desktop.

Select an option

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