Provide the list of packages in a modern way (#58668)
This commit is contained in:
parent
dbb1f01a56
commit
f9a31e3e17
2 changed files with 6 additions and 7 deletions
|
@ -15,11 +15,11 @@ Blocks allow for logical grouping of tasks and in play error handling. Most of w
|
||||||
block:
|
block:
|
||||||
- name: install httpd and memcached
|
- name: install httpd and memcached
|
||||||
yum:
|
yum:
|
||||||
name: "{{ item }}"
|
name:
|
||||||
state: present
|
|
||||||
loop:
|
|
||||||
- httpd
|
- httpd
|
||||||
- memcached
|
- memcached
|
||||||
|
state: present
|
||||||
|
|
||||||
- name: apply the foo config template
|
- name: apply the foo config template
|
||||||
template:
|
template:
|
||||||
src: templates/src.j2
|
src: templates/src.j2
|
||||||
|
|
|
@ -16,11 +16,10 @@ that tags two tasks with different tags::
|
||||||
|
|
||||||
tasks:
|
tasks:
|
||||||
- yum:
|
- yum:
|
||||||
name: "{{ item }}"
|
name:
|
||||||
|
- httpd
|
||||||
|
- memcached
|
||||||
state: present
|
state: present
|
||||||
loop:
|
|
||||||
- httpd
|
|
||||||
- memcached
|
|
||||||
tags:
|
tags:
|
||||||
- packages
|
- packages
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue