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/55643c0b-fe0f-4472-8498-86934fa84eba%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to