From 8d0b8c70cef72351c87d762db6d209f96e547202 Mon Sep 17 00:00:00 2001 From: Michael DeHaan Date: Sun, 5 May 2013 13:39:03 -0400 Subject: [PATCH] update with_items example --- examples/playbooks/loop_with_items.yml | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/examples/playbooks/loop_with_items.yml b/examples/playbooks/loop_with_items.yml index a7533d6adf1..3b9efba4899 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