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
group_vars: host_vars: warn for non-yaml files in dirs #18128
Conversation
I don't think the documentation is consistent about using extensions for host_vars / group_vars. This change would mean I would have to change all the files in my group_vars folders. Perhaps a warning if backup file names, say those containing ~ are found in group vars / host vars would be a practical compromise? |
I don't see any conflicts with the best practice guide,"...create two files named vars and vault...", that still works as these files have no extension. But I would say this commit has some potential to break certain setups. A compromise of adding a warning would be an option of course. |
bot_status |
waiting_on: ansible |
this does not seem like the right fix, it seems to compensate for the extension filter being broken, we shoudl fix that instead. |
ISSUE TYPE
COMPONENT NAME
host_vars, group_vars
ANSIBLE VERSION
SUMMARY
fixes #17968
ignorewarn for files without a known yaml extension in group_/host_vars if directories like group_vars/group/... are used.