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-in
Yeah, you're right!
Thanks!
On Thursday, February 1, 2018 at 3:56:32 AM UTC+5:30, Malcolm
Hussain-Gambles wrote:
>
> I don't think you can do that, as the item isn't defined when it prints
> the name section. I also seem to remember that certain modules,like yum
> will process the list in one
This doesn't matter.
On Thursday, February 1, 2018 at 1:37:49 AM UTC+5:30, ZillaYT wrote:
>
> Try enclosing the name in double-quotes, e.g.,
>
> tasks:
> - name: "Installing {{ item }}"
> yum:
> name: "{{ item }}"
> state: latest
> with_items:
> - httpd
>
I don't think you can do that, as the item isn't defined when it prints the
name section. I also seem to remember that certain modules,like yum will
process the list in one go. Rather than doing two yum installs.
--
You received this message because you are subscribed to the Google Groups
"Ans
Try enclosing the name in double-quotes, e.g.,
tasks:
- name: "Installing {{ item }}"
yum:
name: "{{ item }}"
state: latest
with_items:
- httpd
- firewalld
On Monday, January 29, 2018 at 11:02:58 AM UTC-5, Varun Chopra wrote:
>
> Hi,
>
> I'm tryi