Michael DeHaan <[email protected]> napisał:
>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.

The path in the error looks strange ;-)

>On Tue, Sep 2, 2014 at 11:05 AM, Dan Bohea <[email protected]> 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"'

I think you want to create a list here, like this:

settings_files:
 - ../settings.yml
 - ../example.settings.yml

And then use it like this:

vars_files:
   - "{{ settings_files }}"

>> 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].
>> 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/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.
>>

-- 
Wysłane za pomocą K-9 Mail.

-- 
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/86ceddad-22aa-435c-a7d0-7c98033b8f94%40email.android.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to