Group_vars behavior when using directory for inventory and playbooks structured in playbooks folder

Hi all,

I would like to have the following project structure:

.
├── group_vars
│ └── all.yml
├── hosts
│ └── localhost
└── playbooks

└── main.yml

The problem here is that the group_vars are not loaded in this configuration, they would need to be moved either under the ‘hosts’ inventory directory or under the playbooks directory.
Is there any way to make the above structure work?

No. It is not. See "Organizing host and group variables"
https://docs.ansible.com/ansible/latest/user_guide/intro_inventory.html#organizing-host-and-group-variables

  "Ansible loads host and group variable files by searching paths
  relative to the inventory file or the playbook file."

IMHO, the simplest workaround would be a symlink.