Commit 8d0b8c70 by Michael DeHaan

update with_items example

parent f57e57ba
......@@ -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
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment