Hi all,
I've been wondering on how am I going to move the contents of my group_vars and host_vars to a different location then I found
https://github.com/ansible/ansible/issues/13051 which basically was rejected.
My use case is mainly to have a better organization of my configurations. Since I was able to specify a custom location for my inventory and roles_path as stated also in the above link, I also wanted to set a custom location for my group_vars and host_vars.
Currently, my Ansible directory tree looks like this:
ANSIBLE_DIR=/etc/ansible
$ANSIBLE_DIR/ansible.cfg
$ANSIBLE_DIR/main.yml
$ANSIBLE_DIR/environment/{development,staging,production}
$ANSIBLE_DIR/roles/{defaults,files,handlers,meta,tasks,templates,vars}/
Then, I want to have my group_vars and host_vars to be located at:
$ANSIBLE_DIR/vars/{groups,hosts}/
I find it messy (sorry) if my group_vars and host_vars are located inside the $ANSIBLE_DIR/environment/ directory. Thus, I want to move it to some other place.
Thank you and I hope you will consider this feature request.
Kind regards,
Muffin