So currently all my playbooks will use this (hack):
- include_vars: "include_{{ item }}.yml"
with_items: group_names | intersect(['dev', 'prod', ...])
So for "groups" that reference environments, I do not have group_vars, but
explicitly included files.
For everything else I can use group vars. I still do not like this.
Especially since the documentation does not explicitly defines this
precedence:
"then comes "most everything else" (command line switches, vars in play,
included vars, role vars, etc)"
--
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/a5d0ef5b-cb0a-4c08-b3c2-c57696181447%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.