On Thursday, 1 February 2018 16.10.27 CET Varun Chopra wrote:
> Yeah, you're right!
There is a workaround to get if you want it, it involves include_tasks.
file-to-include.yml
---
- name: Installing {{ item }}
yum:
name: "{{ item }}"
state: latest
tasks:
- include_tasks: file-to-include.yml
with_items:
- httpd
- firewalld
But this will be a bit slower since you are running yum one by one for each item.
When you have with_items on the yum task it will install all of them in one yum command.
--
Kai Stian Olstad