Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/ansible/ansible-examples.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKyle Walker <KyleJamesWalker@gmail.com>2014-02-19 21:34:00 +0400
committerKyle Walker <KyleJamesWalker@gmail.com>2014-02-19 21:34:00 +0400
commit26c85ea9434ebb7f1394be36dd08daf6e5712ad3 (patch)
treefc8b80cbef1d3b71193eca317b345022b1a96ed9 /language_features
parentb72995401906915ccad594bcad354e3dd08c5d17 (diff)
Added with_items dictionary example.
Example of using with items with more than one parameter.
Diffstat (limited to 'language_features')
-rw-r--r--language_features/loop_with_items.yml9
1 files changed, 7 insertions, 2 deletions
diff --git a/language_features/loop_with_items.yml b/language_features/loop_with_items.yml
index 3b9efba..bb93fab 100644
--- a/language_features/loop_with_items.yml
+++ b/language_features/loop_with_items.yml
@@ -26,5 +26,10 @@
- testuser1
- testuser2
-
-
+ - name: copy templates
+ template: src={{ item.src }} dest={{ item.dest }}
+ with_items:
+ - src: templates/testsource1
+ dest: dest=/example/dest1/test.conf
+ - src: templates/testsource2
+ dest: dest=dest=/example/dest2/test.conf