My understanding is that group and host vars can be placed under the root ansible directory.
Based on the below, with group_vars in its location, the playbook returns an error saying it is unable to find the vars. If I move it to the inventory folder all is ok.
tree .
.
├── ansible.cfg
├── group_vars
│ └── all.yaml
├── inventory
│ ├── host_vars
│ │ ├── access1.yaml
│ │ ├── access2.yaml
│ │ └── aggr1.yaml
│ └── test
├── playbooks
│ ├── site.retry
│ └── site.yaml
└── README.md
All other guides show the host_vars/group_vars in the root location? Is there a setting I need to update or check to allow this?
EDIT: ansible.cfg is shown below:
[defaults]
gathering = explicit
Inventory = ./inventory/test
retry_files_enabled = False
Host_key_checking = false
Timeout = 5
[persistent_connection]
connect_timeout = 30
command_timeout = 30
inventoryoption of theansible.cfgfile? - guzmonne