Sorry I couldn’t find an answer to my question anywhere. I have a test playbook which runs from callback in AWX however the zabbix_agent role included in my playbook is not picking up any variables from group_vars/all. Should this work at all ? I cannot find this bit documented anywhere either.
Could you have a look at /api/v2/inventories/N/script/?hostvars=1 for the particular inventory you’re using? This is the inventory contents fed to ansible-playbook commands in AWX. Does this content contain the variables you expect?
Yeah it was very weird error simply because it said the value is not defined but it also was set in the defaults for the role so it was even more confusing.
I have the same problem and I have tried all kinds of directory structures but AWX still can’t recognize my group_vars. I just moved recently from using Ansible directly to AWX. Running it in the terminal using Ansible works well though.
This is my current directory structure. Please advise how you structured yours. Thanks