Skip to content

Commit 497e49c

Browse files
committed
Merge pull request ansible#57 from KyleJamesWalker/master
Added with_items dictionary example.
2 parents b729954 + 467b578 commit 497e49c

File tree

1 file changed

+7
-2
lines changed

1 file changed

+7
-2
lines changed

language_features/loop_with_items.yml

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,5 +26,10 @@
2626
- testuser1
2727
- testuser2
2828

29-
30-
29+
- name: copy templates
30+
template: src={{ item.src }} dest={{ item.dest }}
31+
with_items:
32+
- src: templates/testsource1
33+
dest: /example/dest1/test.conf
34+
- src: templates/testsource2
35+
dest: /example/dest2/test.conf

0 commit comments

Comments
 (0)