On Thursday, 25 February 2016 14:48:21 UTC+11, Brian Coca wrote:
>
> it is not an issue with the module, but with first found, which always 
> looks in files/ not in vars/
>
> ​this should work:​
>
>  with_first_found: 
>    - 
> ​"vars/
> {{ ansible_os_family }}.yml" 
>    - "
> ​vars/​
> default.yml" 
>

Unfortunately, that fails with the same error.

It looks like with_first_found now tries all directories:

                if roledir is not None: 
                   # check the templates and vars directories too,if they 
exist 
                   for subdir in ('templates', 'vars', 'files'): 
                       path = self._loader.path_dwim_relative(roledir, 
subdir, fn) 
                       if os.path.exists(path): 
                           return [path] 

               # if none of the above were found, just check the 
               # current filename against the current dir 
               path = self._loader.path_dwim(fn) 
               if os.path.exists(path): 
                   return [path]

However, 'roledir' = None for some reason, so we only check for the file in 
the current working directory.

Cheers,
Marcus.

>

-- 
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/aeb0f542-f1cb-453d-afbb-5c1357eb068f%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to