mirror of
https://github.com/ansible-collections/community.general.git
synced 2024-09-14 20:13:21 +02:00
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:
|
tasks:
|
||||||
|
|
||||||
- name: install $item
|
- name: install packages
|
||||||
action: yum pkg=$item state=installed
|
action: yum name={{ item }} state=installed
|
||||||
with_items:
|
with_items:
|
||||||
- cobbler
|
- cobbler
|
||||||
- httpd
|
- httpd
|
||||||
|
|
||||||
- name: configure user $item
|
- name: configure users
|
||||||
action: user name=$item state=present groups=wheel
|
action: user name={{ item }} state=present groups=wheel
|
||||||
with_items:
|
with_items:
|
||||||
- testuser1
|
- testuser1
|
||||||
- testuser2
|
- testuser2
|
||||||
|
|
||||||
- name: remove user $item
|
- name: remove users
|
||||||
action: user name=$item state=absent
|
action: user name={{ item }} state=absent
|
||||||
with_items:
|
with_items:
|
||||||
- testuser1
|
- testuser1
|
||||||
- testuser2
|
- testuser2
|
||||||
|
|
Loading…
Reference in a new issue