Hi
I'm trying to change the order in which our group_vars are loaded with ansible_group_priority but it's not working.
I have a role at roles/mytest/tasks/main.yaml like this:
Hi
I'm trying to change the order in which our group_vars are loaded with ansible_group_priority but it's not working.
I have a role at roles/mytest/tasks/main.yaml like this:
You cannot set group priority in group_vars files as it handles the
priority in which group_vars files are read, you need to set it in the
main inventory source.
I tried, but it's not working either. I just made a mini-version of our inventory script, adding the ansible_group_priority:
I found the problem, I wasn't putting the priority inside "vars". The inventory that works is this one: