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
--
You received this message because you are subscribed to the Google Groups
"Ansible Project" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/ansible-project/2797448.21lkfTjTi9%40x1.
For more options, visit https://groups.google.com/d/optout.