OK thanks.

And do you know if there is a way with the yum module to not have those two 
entries when the latest package is installed ? I'd like to have only the 
one with "yumstate=installed" and not the one with available state.
Cause actually I just want to know if one package is installed or not, but 
I don't want to install it, just check, that's why I don't want to use the 
"state=installed" or even "present" cause it will install the package if 
it's not here.
I tried a lot of thing but so far didn't find what I wanted.
does it make sense?

Thanks


Le mercredi 29 mars 2017 16:35:29 UTC+2, Kai Stian Olstad a écrit :
>
> On 29. mars 2017 16:14, Z-obaze wrote: 
> > Thanks. 
> > 
> > And is there a way to not use include and to keep the inner loop into 
> the 
> > same playbook than the outer loop? 
> > Cause I don't like the way it splits the playbook into two yaml files. 
>
> No, that is the only way to do it in Ansible. 
>
> If you are only using the data in a template then you can do loop in a 
> loop in Jinja2. 
>
> -- 
> 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/b827b475-cfae-4c8a-b380-ae40cf66ddf0%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to