-
Notifications
You must be signed in to change notification settings - Fork 677
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
ansible-lint cluttering workspace with .ansible folders #4533
Comments
This happens in VSCode with enabled Ansible plugin as well. As soon as I open a .yml file in any of my workspaces repos I'll get an empty
|
To add to the list of annoyances, it also actively breaks
|
Have you had any luck with downgrading ansible-lint ? i tried version 24.9 after a colleague confirmed that they were not getting the issue but I've had no luck, it seems to be a persistent issue on my machine now across multiple repos / lint versions. |
@chazragg I just finished testing this - it's because of changes to pip uninstall -y ansible-compat ansible-lint molecule
pip install "ansible-compat==24.10.0" ansible-lint molecule This will install an |
Specific for
|
Thanks for the workaround @bendwyer, already went ~ an hour through the docs as I thought I just configured something wrongly |
Just be careful of disk thrashing here. My Workaround from @bendwyer works great, and also solves |
Summary
Installaing the latest version of ansible lint with
pip install ansible-dev-tools
leads to ansible-lint creating.ansible
folders relative to the path where it was launched from.Issue Type
OS / ENVIRONMENT
STEPS TO REPRODUCE
Desired Behavior
ansible-lint should not create .ansible folders in the directory it's launched from.
Actual Behavior
ansible-lint creates a
.ansible
folder even if it's just ran with the--version
flag (Also see "STEPS TO REPRODUCE")This is especially annoying when using it for linting inside an editor like neovim because it pollutes the workspace with these directories.
The text was updated successfully, but these errors were encountered: