You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The ansible-lint command adds ANSIBLE_ROLES_PATH to a path that is not defined anywhere.
Issue Type
Bug Report
OS / ENVIRONMENT
$ ansible-lint --versionansible-lint 25.1.3 using ansible-core:2.18.1 ansible-compat:25.1.4 ruamel-yaml:0.18.10 ruamel-yaml-clib:None
ansible installation method: pipx
ansible-lint installation method: pipx
STEPS TO REPRODUCE
The ansible-lint command systematically creates an .ansible folder in my projects. This breaks the operation of my CIs and I don't want this folder to exist in my projects (even ignoring it is a problem). I thought I had misconfigured ansible-lint, but it seems to add the contents of ANSIBLE_ROLES_PATH to something hard-coded somewhere.
$ ANSIBLE_ROLES_PATH=/tmp/toto ansible-lint -vINFO Identified /home/pulsar/git/ops/ansible_roles/my_role as project root due .git directory.INFO Collection paths was patched to include extra directories /home/pulsar/.ansible/collections,/usr/share/ansible/collections,/home/pulsar/.local/share/pipx/venvs/molecule/lib/python3.13/site-packages,/home/pulsar/.local/share/pipx/venvs/molecule/lib64/python3.13/site-packagesINFO Set ANSIBLE_LIBRARY=/home/pulsar/git/ops/ansible_roles/my_role/.ansible/modules:/home/pulsar/.ansible/plugins/modules:/usr/share/ansible/plugins/modulesINFO Set ANSIBLE_COLLECTIONS_PATH=/home/pulsar/git/ops/ansible_roles/my_role/.ansible/collections:/home/pulsar/.ansible/collections:/usr/share/ansible/collections:/home/pulsar/.local/share/pipx/venvs/molecule/lib/python3.13/site-packages:/home/pulsar/.local/share/pipx/venvs/molecule/lib64/python3.13/site-packagesINFO Set ANSIBLE_ROLES_PATH=/home/pulsar/git/ops/ansible_roles/my_role/.ansible/roles:/tmp/totoINFO Using /home/pulsar/git/ops/ansible_roles/my_role/.ansible/roles/acme.my_role symlink to current repository in order to enable Ansible to find the role using its expected full name.INFO Loading ignores from .gitignoreINFO Executing syntax check on playbook molecule/default/prepare.yml (0.25s)INFO Executing syntax check on playbook molecule/default/converge.yml (0.26s)Passed: 0 failure(s), 0 warning(s) on 42 files. Last profile that met the validation criteria was 'production'.
Summary
The ansible-lint command adds ANSIBLE_ROLES_PATH to a path that is not defined anywhere.
Issue Type
OS / ENVIRONMENT
STEPS TO REPRODUCE
The ansible-lint command systematically creates an .ansible folder in my projects. This breaks the operation of my CIs and I don't want this folder to exist in my projects (even ignoring it is a problem). I thought I had misconfigured ansible-lint, but it seems to add the contents of ANSIBLE_ROLES_PATH to something hard-coded somewhere.
Problem: ANSIBLE_ROLES_PATH=/home/pulsar/git/ops/ansible_roles/my_role/.ansible/roles:/tmp/toto
The text was updated successfully, but these errors were encountered: