@Brian, 

According to your comment in this issue: 
https://github.com/ansible/ansible/issues/11961

the when: of the include: gets run AFTER the with_xxx of the child file? 
 This doesn't make any sense to me.  If you are conditionally including a 
file, NOTHING in that file should be processed.  I am not being combative, 
but am I missing something here?  That seems like a real bug; the specific 
bug that I'm running into over and over again. 

On Wednesday, August 19, 2015 at 9:47:04 AM UTC-7, senorsmile wrote:
>
> And I've run into this bug yet again!
>
> I have the following which fails on skipped hosts: 
>
> - name: Check all other host certs
>   connection: local
>   sudo: false
>   stat:  
>     path: "{{ role_path }}/templates/ca/{{ item }}.crt"
>    with_items: "{{ 
> (nagios_host_fqdns_flat|default([])).split(',')|default([]) }}"
>   register: stat_host_certs
>
> This is becoming quite time consuming to insert for every with_* on 
> skipped files!!!
>
> On Thursday, August 13, 2015 at 6:09:06 PM UTC-7, senorsmile wrote:
>>
>> Ah, great catch.  That actually works.  
>>
>> Now, to convince ansible not to evaluate anything in included files which 
>> are skipped...
>>
>> On Thursday, August 13, 2015 at 5:46:11 PM UTC-7, Brian Coca wrote:
>>>
>>> try: 
>>>   with_items: "{{ ((the_files|default([])).stdout_lines|default([])) | 
>>> list }}" 
>>>
>>>
>>> -- 
>>> Brian Coca 
>>>
>>

-- 
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/84dc7080-0147-47d3-9697-88fc552cec19%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to