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