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].
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.
For more options, visit https://groups.google.com/d/optout.

Reply via email to