Correct, you could symlink a main.yml but not stick another file in there
with a different name.

The reason for this is some folks use those for conditional includes (of
vars/) directories, so auto-loading them would cause more confusion than
it's worth.



On Wed, Aug 27, 2014 at 3:51 PM, Daniele Varrazzo <
[email protected]> wrote:

>
> On Wednesday, August 27, 2014 8:11:55 PM UTC+1, Michael DeHaan wrote:
>>
>> Setting defaults in group_vars/all is usually a very good place to set
>> global defaults.
>>
>
> They are not really globals: the db/web above is just an example. The
> variables may be shared across a few roles but other roles don't need to
> see them. In a project with about a dozen of roles the "all" file is
> quickly becoming big and not pleasant to maintain.
>
>
> Note that role defaults are a lower priority than inventory though.
>>
>
> Yes, the priority of the variables in defaults is as low as I need it. The
> priority gets increased if the default is included via include_vars though,
> and it's at a level that the inventory cannot override.
>
>
> You could also consider symlinks.
>>
>
> What can I symlink? I've tried linking db/defaults/main.yml as
> web/defaults/db.yml but ansible doesn't read the file. It would have solved
> my problem indeed, but it appears only main.yml is read, not any *.yml. Did
> you have a different symlink in mind?
>
> Thank you
>
> -- Daniele
>
>  --
> 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/a6eaef56-f7e5-4dcc-91b8-9e60165c4e0f%40googlegroups.com
> <https://groups.google.com/d/msgid/ansible-project/a6eaef56-f7e5-4dcc-91b8-9e60165c4e0f%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/CA%2BnsWgzqRi5otdncvTTzBdoutYis4_nXX%2BxzNeZWmPd0usbCcQ%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to