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:
|
||||
- name: install httpd and memcached
|
||||
yum:
|
||||
name: "{{ item }}"
|
||||
state: present
|
||||
loop:
|
||||
name:
|
||||
- httpd
|
||||
- memcached
|
||||
state: present
|
||||
|
||||
- name: apply the foo config template
|
||||
template:
|
||||
src: templates/src.j2
|
||||
|
|
|
@ -16,11 +16,10 @@ that tags two tasks with different tags::
|
|||
|
||||
tasks:
|
||||
- yum:
|
||||
name: "{{ item }}"
|
||||
name:
|
||||
- httpd
|
||||
- memcached
|
||||
state: present
|
||||
loop:
|
||||
- httpd
|
||||
- memcached
|
||||
tags:
|
||||
- packages
|
||||
|
||||
|
|
Loading…
Reference in a new issue