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

pull/58911/head
Wojciech Sciesinski 5 years ago committed by Alicia Cozine
parent dbb1f01a56
commit f9a31e3e17

@ -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…
Cancel
Save