# group\_vars/all not working in awx

**URL:** <https://forum.ansible.com/t/group-vars-all-not-working-in-awx/25792>\
**Category:** AWX Project\
**Tags:** awx\
**Created:** [October 20, 2017, 1:22pm UTC](https://forum.ansible.com/t/group-vars-all-not-working-in-awx/25792 "2017-10-20T13:22:38Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![Thorvald](https://avatars.discourse-cdn.com/v4/letter/t/e480ec/32.png) [@Thorvald](https://forum.ansible.com/u/Thorvald)\
**Post date:** [October 20, 2017, 1:22pm UTC](https://forum.ansible.com/t/group-vars-all-not-working-in-awx/25792/1 "2017-10-20T13:22:38Z")

</div>

Hi guys,

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.

Thank you for your help.

Regards,  
TH

---

<div class="post-metadata">

**Author:** ![AlanCoding](https://sea1.discourse-cdn.com/ansible/user_avatar/forum.ansible.com/alancoding/32/301_2.png) [@AlanCoding](https://forum.ansible.com/u/AlanCoding)\
**Post date:** [October 20, 2017, 1:50pm UTC](https://forum.ansible.com/t/group-vars-all-not-working-in-awx/25792/2 "2017-10-20T13:50:33Z")

</div>

A simple step to help debugging:

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?

Thanks,  
Alan

---

<div class="post-metadata">

**Author:** ![Thorvald](https://avatars.discourse-cdn.com/v4/letter/t/e480ec/32.png) [@Thorvald](https://forum.ansible.com/u/Thorvald)\
**Post date:** [October 20, 2017, 1:50pm UTC](https://forum.ansible.com/t/group-vars-all-not-working-in-awx/25792/3 "2017-10-20T13:50:34Z")

</div>

Ignore my message. My playbook was running from playbooks/ directory and group\_vars was in wrong location.

---

<div class="post-metadata">

**Author:** ![Thorvald](https://avatars.discourse-cdn.com/v4/letter/t/e480ec/32.png) [@Thorvald](https://forum.ansible.com/u/Thorvald)\
**Post date:** [October 20, 2017, 2:06pm UTC](https://forum.ansible.com/t/group-vars-all-not-working-in-awx/25792/4 "2017-10-20T14:06:35Z")

</div>

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 will save that link for future :).

Thank you Alan!!

---

<div class="post-metadata">

**Author:** ![kenneth\_chinedu](https://avatars.discourse-cdn.com/v4/letter/k/3be4f8/32.png) [@kenneth\_chinedu](https://forum.ansible.com/u/kenneth_chinedu)\
**Post date:** [February 20, 2018, 12:55pm UTC](https://forum.ansible.com/t/group-vars-all-not-working-in-awx/25792/5 "2018-02-20T12:55:56Z")

</div>

Hello Thorvald,

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

├── ansible.cfg  
├── deploy.sh  
├── group\_vars  
│ ├── all.yml  
│ ├── common.yml  
│ ├── postgresql.yml  
│ ├── test-hosts.yml  
│  
├── hosts  
├── install-ansible.sh  
├── Makefile  
├── roles  
│ ├── common  
│ ├── deployer  
│ ├── docker  
│ ├── docker-registry  
│ ├── dotnet-core  
│ ├── elasticsearch  
│ ├── fluentd  
│ ├── geoserver  
│ ├── java  
│ ├── mongodb  
│ ├── nginx  
│ ├── nodejs  
│ ├── pentaho  
│ ├── postgresql  
│ ├── rabbitmq  
│ ├── repository  
│ ├── tomcat  
│ ├── web-portal  
│ ├── zabbix-agent  
│ └── zabbix-server  
└── sites  
├── deployer\_var  
├── deployer.yml  
├── docker-registry.yml  
├── docker.yml  
├── etl.yml  
├── fluentd.retry  
├── fluentd.yml  
├── postgresql.retry  
├── postgresql\_var  
├── postgresql.yml  
├── repository.yml  
├── role-sh\_var  
├── role-sh.yml  
├── web-portal.retry  
├── web-portal\_var  
├── web-portal.yml  
├── zabbix-agent.retry  
├── zabbix-agent\_var  
├── zabbix-agent.yml  
├── zabbix-server.retry  
├── zabbix-server\_var  
└── zabbix-server.yml

---

<div class="post-metadata">

**Author:** ![matburt](https://sea1.discourse-cdn.com/ansible/user_avatar/forum.ansible.com/matburt/32/3612_2.png) [@matburt](https://forum.ansible.com/u/matburt)\
**Post date:** [February 20, 2018, 2:23pm UTC](https://forum.ansible.com/t/group-vars-all-not-working-in-awx/25792/6 "2018-02-20T14:23:15Z")

</div>

You are most likely running into this problem: [https://github.com/ansible/ansible/issues/30877](https://github.com/ansible/ansible/issues/30877)

Which has been fixed and merged and we’ll pick it up when a new version of Ansible releases.
