As Tomasz says below, the path in the error looks strange:

[u'/Volumes/Data/Projects/vlad/vlad/vlad/playbooks/"../settings.yml", 
"../example.settings.yml"']

...especially when compared to the paths stored in my settings_files 
variable:

settings_files: '"../settings.yml", "../example.settings.yml"'

So you know, the "/Volumes/Data/Projects/vlad/vlad/vlad/playbooks/" part 
that's being prepended is the path to the playbook that's calling 
vars_files.


On Tuesday, 2 September 2014 23:45:48 UTC+1, Michael DeHaan wrote:
>
> What were you expecting?
>
> It's saying none of the files in the list were found and hitting an error 
> condition, but I'm unclear which parts you find unusual.
>
> Thanks!
>
>
> On Tue, Sep 2, 2014 at 11:05 AM, Dan Bohea <[email protected] <javascript:>
> > wrote:
>
>> So I just recently discovered how to list several possible vars_files, 
>> with precedence, and where some may not exist:
>>
>>
>> http://serverfault.com/questions/589734/ansible-can-i-use-vars-files-when-some-files-do-not-exist
>>
>> Very handy. Where is the documentation for this?
>>
>>
>> Next question...
>>
>> I'd like to centralise a list of possible vars_files in a single variable 
>> but can't get it to work. E.g:
>>
>> vars_files:
>>   - [ "{{ settings_files }}" ]
>>
>> and then in say group_vars/all I have my files defined:
>>
>> settings_files: '"../settings.yml", "../example.settings.yml"'
>>
>> But that doesn't work - I get the following error:
>>
>> vlad: not importing file: 
>> /Volumes/Data/Projects/vlad/vlad/vlad/playbooks/"../settings.yml", 
>> "../example.settings.yml"
>> ERROR: vlad: FATAL, no files matched for vars_files import sequence: 
>> [u'/Volumes/Data/Projects/vlad/vlad/vlad/playbooks/"../settings.yml", 
>> "../example.settings.yml"']
>>
>> It looks like something is happening on expansion that I wasn't expecting.
>>
>> I'm hoping this is just a question of syntax and I've messed around with 
>> a few variations but am still having no luck.
>>
>> Can anyone help with this? Is it even possible?
>>
>> I'm running Ansible v1.7.1.
>>
>> -- 
>> 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] <javascript:>.
>> To post to this group, send email to [email protected] 
>> <javascript:>.
>> To view this discussion on the web visit 
>> https://groups.google.com/d/msgid/ansible-project/fce326b0-5489-45b7-976c-58e8a3e11769%40googlegroups.com
>>  
>> <https://groups.google.com/d/msgid/ansible-project/fce326b0-5489-45b7-976c-58e8a3e11769%40googlegroups.com?utm_medium=email&utm_source=footer>
>> .
>> For more options, visit https://groups.google.com/d/optout.
>>
>
>

-- 
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/1eecbaf9-54ca-4f09-855c-69c171f59089%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to