Created
August 7, 2013 16:42
-
-
Save jlund/6175780 to your computer and use it in GitHub Desktop.
Ansible: Using multiple arguments in with_items
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
--- | |
- name: Echo some things! | |
command: echo {{ item.foo }} {{ item.bar }} | |
with_items: echo_arguments |
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
--- | |
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