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
As I wrote up this issue I ended up thinking it's an upstream one in ansible-lint for which I could not find a report there either. Putting it here for visibility at least, will close if it I find enough time to verify and report upstream.
It fails the same way even executing it in my home (project folder executes fine):
[130] % ansible --version
# Not much I can do about this warning at the moment - https://github.com/nextcloud/desktop/issues/6863
[WARNING]: Ansible is being run in a world writable directory (/home/c0rn3j/Nextcloud/HugeFiles/Projects/configs), ignoring it as an ansible.cfg source. For more information see https://docs.ansible.com/ansible/devel/reference_appendices/config.html#cfg-in-world-writable-dir
ansible [core 2.17.3]
config file = None
configured module search path = ['/home/c0rn3j/.ansible/plugins/modules', '/usr/share/ansible/plugins/modules']
ansible python module location = /usr/lib/python3.12/site-packages/ansible
ansible collection location = /home/c0rn3j/.ansible/collections:/usr/share/ansible/collections
executable location = /usr/bin/ansible
python version = 3.12.5 (main, Aug 9 2024, 08:20:41) [GCC 14.2.1 20240805] (/usr/bin/python)
jinja version = 3.1.4
libyaml = True
OS / Environment
Arch Linux, OS packages.
Relevant log output
Path for lint: /usr/bin/ansible-lint
Validating using ansible-lint
cmd 'ansible-lint --version' was not executed with the following error: ' Command failed: /usr/bin/ansible-lint --versionTraceback (most recent call last): File "/usr/bin/ansible-lint", line 8, in <module> sys.exit(_run_cli_entrypoint()) ^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.12/site-packages/ansiblelint/__main__.py", line 408, in _run_cli_entrypoint sys.exit(main(sys.argv)) ^^^^^^^^^^^^^^ File "/usr/lib/python3.12/site-packages/ansiblelint/__main__.py", line 290, in main cache_dir_lock = initialize_options(argv[1:]) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.12/site-packages/ansiblelint/__main__.py", line 125, in initialize_options new_options = cli.get_config(arguments or []) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.12/site-packages/ansiblelint/cli.py", line 606, in get_config project_dir, method = find_project_root( ^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.12/site-packages/ansiblelint/file_utils.py", line 526, in find_project_root if resolved_cfg_path.is_file(): ^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.12/pathlib.py", line 892, in is_file return S_ISREG(self.stat().st_mode) ^^^^^^^^^^^ File "/usr/lib/python3.12/pathlib.py", line 840, in stat return os.stat(self, follow_symlinks=follow_symlinks) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^PermissionError: [Errno 13] Permission denied: '/.config/ansible-lint.yml'
The text was updated successfully, but these errors were encountered:
Summary
As I wrote up this issue I ended up thinking it's an upstream one in ansible-lint for which I could not find a report there either. Putting it here for visibility at least, will close if it I find enough time to verify and report upstream.
It fails the same way even executing it in my home (project folder executes fine):
VSC:
Extension version
v24.8.4
VS Code version
1.19.2
Ansible Version
OS / Environment
Arch Linux, OS packages.
Relevant log output
The text was updated successfully, but these errors were encountered: