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