-
Notifications
You must be signed in to change notification settings - Fork 116
Open
Description
Summary
When having one specific playbook open, I receive the following problem below. The problem is the roles_path
from the ansible.cfg is not being respected. The linter looks at the wrong directories.
Output from lint on console
ansible-lint -v
[...]
INFO Set ANSIBLE_ROLES_PATH=/data/home/user/git/deployment/ansible/.ansible/roles:roles:/data/home/user/git/deployment/ansible/roles
Output > Ansible Server
: I do not have this option.
Extension version
25.8.1
VS Code version
1.104.0
Ansible Version
ansible [core 2.17.13]
config file = /data/home/user/git/deployment/ansible/ansible.cfg
configured module search path = ['/data/home/user/git/deployment/ansible/modules']
ansible python module location = /usr/local/lib/python3.10/dist-packages/ansible
ansible collection location = /data/home/user/git/deployment/ansible/collections/ansible_collections:/data/home/user/.ansible/collections:/usr/share/ansible/collections
executable location = /usr/local/bin/ansible
python version = 3.10.12 (main, Aug 15 2025, 14:32:43) [GCC 11.4.0] (/usr/bin/python3)
jinja version = 3.0.3
libyaml = True
OS / Environment
SSH Remote Ubuntu 22.04.5, ansible-lint 25.8.2 using ansible-core:2.17.13 ansible-compat:25.8.1 ruamel-yaml:0.18.15 ruamel-yaml-clib:0.2.12
Relevant log output
the role 'int.partitioning' was not found in /data/home/user/git/deployment/ansible/playbooks/roles:/tmp/.ansible-23ab/roles:/data/home/user/.ansible/roles:/usr/share/ansible/roles:/etc/ansible/roles:/data/home/user/git/deployment/ansible/playbooks ansible-lintsyntax-check[specific]
Metadata
Metadata
Assignees
Labels
No labels
Type
Projects
Status
No status