update with_items example
This commit is contained in:
parent
f57e57ba54
commit
8d0b8c70ce
1 changed files with 6 additions and 6 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue