Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Ansible host_vars adjacent to playbook_dir for playbooks from a collection #1231

Open
fitbeard opened this issue May 20, 2024 · 0 comments
Open

Comments

@fitbeard
Copy link
Contributor

Just to note that we are aware of this: https://forum.ansible.com/t/host-vars-adjacent-to-playbook-dir-for-playbooks-from-a-collection/2416

TL;DR: if playbooks are imported from "inner" collections like here: https://github.com/vexxhost/atmosphere/blob/main/playbooks/kubernetes.yml#L50 ansible will respect and use group|host_vars only if they are located in the same directory as an inventory file.

In order to use a different structure, especially with AWX/AAP where inventories are virtual, all places with this syntax should be changed to standalone roles and tasks used directly.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant