summaryrefslogtreecommitdiffstats
path: root/examples
diff options
context:
space:
mode:
authorMichael DeHaan <michael@ansibleworks.com>2013-05-05 19:39:03 +0200
committerMichael DeHaan <michael@ansibleworks.com>2013-05-05 19:39:03 +0200
commit8d0b8c70cef72351c87d762db6d209f96e547202 (patch)
treee1d3d1ebc68d968c101e72b925801e3a1ea54201 /examples
parentUpdate loop_plugins example (diff)
downloadansible-8d0b8c70cef72351c87d762db6d209f96e547202.tar.xz
ansible-8d0b8c70cef72351c87d762db6d209f96e547202.zip
update with_items example
Diffstat (limited to 'examples')
-rw-r--r--examples/playbooks/loop_with_items.yml12
1 files changed, 6 insertions, 6 deletions
diff --git a/examples/playbooks/loop_with_items.yml b/examples/playbooks/loop_with_items.yml
index a7533d6adf..3b9efba489 100644
--- a/examples/playbooks/loop_with_items.yml
+++ b/examples/playbooks/loop_with_items.yml
@@ -8,20 +8,20 @@
tasks:
- - name: install $item
- action: yum pkg=$item state=installed
+ - name: install packages
+ action: yum name={{ item }} state=installed
with_items:
- cobbler
- httpd
- - name: configure user $item
- action: user name=$item state=present groups=wheel
+ - name: configure users
+ action: user name={{ item }} state=present groups=wheel
with_items:
- testuser1
- testuser2
- - name: remove user $item
- action: user name=$item state=absent
+ - name: remove users
+ action: user name={{ item }} state=absent
with_items:
- testuser1
- testuser2