Put .ansible directory in .config
SUMMARY
Following on from #52354, if the XDG Base Directory Specification cannot be adopted, at least put the .ansible directory in .config so as not to pollute the home directory.
ISSUE TYPE
- Feature Idea
COMPONENT NAME
Main command line ansible utility.
ADDITIONAL INFORMATION
As an aside, in #52354 @samdoran commented:
After discussing this internally, I believe the main concern is around the potential for a malicious user to set
XDG_CONFIG_PATHto a path they control. On Unix, we assume~/[anything]to be safe. IfXDG_CONFIG_PATHis set to/var/tmp/xdgand that directory did not exist, a malicious user could create it and redirect it via symlink to a path they control, or set the permissions so they control everything under that path.
For reference, what if Ansible refused to obey XDG_CONFIG_PATH unless it was under ~? That would satisfy most users I suspect, and be easy to implement.