Hi, I don't see my issue addressed in the docs or existing issues. I'm
trying to override site-wide group_var/all config with an
inventory-specific "all" but it looks like the site-wide vars get
precedence, unexpectedly. Here's my structure:
env
├── dev
│ ├── group_vars
│ │ ├── all
│ │ └── node
│ └── inventory.py
└── production
├── group_vars
│ └── all
└── inventory.py
group_vars
└── all
I have a simple debug playbook to test vars: ansible-playbook -i env/dev
debug.yml
1. In group_vars/all, I set env: common
2. In env/dev/group_vars/all I set env: common/dev, but it does not
override the "common" value (unless I remove env: common from group_vars/all
3. In env/dev/group_vars/node I set env: common/dev/node, and it does
override the "common" value for any hosts that belong to the "node" group.
In #2, shouldn't env/dev/group_vars/all be overriding the value set from
group_vars/all?
Thanks,
Trevor
--
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/a74aafc5-d35f-4802-8268-4e1ecdc64ca3%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.