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
Similar behaviour is observed with ansible-lint validation. When using ANSIBLE_VAULT_IDENTITY and ANSIBLE_VAULT_IDENTITY_LIST with environment variables I get syntax errors:
Summary
TLDR: Modules from collections are not recognized (no definition found) when COLLECTIONS_PATH is set via environment variable.
ansible.cfg
does not havecollections_path
(https://docs.ansible.com/ansible/latest/reference_appendices/config.html#collections-paths) setting in file. However env varANSIBLE_COLLECTIONS_PATH
is set❯ ansible-config dump | grep COLLECTIONS_PATHS COLLECTIONS_PATHS(env: ANSIBLE_COLLECTIONS_PATH) = ['/Users/victor/Code/Sandbox/automation/.collections']
ansible.cfg
havecollections_path
setting in file. Works fine, modules are recognized.Extension version
v24.4.0
VS Code version
1.88.1
Ansible Version
❯ ansible --version ansible [core 2.16.5] config file = /Users/victor/Code/Sandbox/automation/ansible.cfg configured module search path = ['/Users/victor/Code/Sandbox/automation/plugins/modules'] ansible python module location = /Users/victor/Code/Sandbox/automation/.venv/lib/python3.11/site-packages/ansible ansible collection location = /Users/victor/Code/Sandbox/automation/.collections executable location = /Users/victor/Code/Sandbox/automation/.venv/bin/ansible python version = 3.11.6 (main, Mar 24 2024, 10:42:30) [Clang 15.0.0 (clang-1500.3.9.4)] (/Users/victor/Code/Sandbox/automation/.venv/bin/python) jinja version = 3.1.3 libyaml = True
OS / Environment
MACOS 14.4
Relevant log output
No response
The text was updated successfully, but these errors were encountered: