Created
November 26, 2014 19:38
-
-
Save bcoca/17f4a68e2032ff1482b1 to your computer and use it in GitHub Desktop.
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
- hosts: localhost | |
connection: local | |
gather_facts: false | |
vars: | |
things: | |
- "{{ foo }}" | |
- "{{ foob }}" | |
foo: "Hello" | |
tasks: | |
- name: debug things | |
debug: var=things | |
- debug: var="{{ item }}" | |
with_items: things | |
- name: "things with_items" | |
template: src=templates/test.j2 dest=/tmp/{{ item}}.txt | |
with_items: things | |
ignore_errors: True | |
- name: "things with_items2" | |
template: src=templates/test.j2 dest=/tmp/{{ item}}.txt | |
with_items: "{{things}}" | |
ignore_errors: True | |
- name: "things direct template reference" | |
template: src=templates/test.j2 dest=/tmp/things.txt | |
ignore_errors: True |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment