Provide the list of packages in a modern way (#58668)

This commit is contained in:
Wojciech Sciesinski 2019-07-09 19:04:12 +02:00 committed by Alicia Cozine
parent dbb1f01a56
commit f9a31e3e17
2 changed files with 6 additions and 7 deletions

View file

@ -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

View file

@ -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