question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Ansible Meta Data warns Ansible Lint missing

See original GitHub issue

Sanity check

  • I certify that the redhat.ansible extension is in use and the language of the document in this bug report shows up as Ansible

Summary

“Ansible Meta data” warns that Ansible Lint is missing, but it is installed and working. I guess the extension is not finding the “python3” executable, it only tries “python” which an Ubuntu does not provide out of the box.

image image

Extension version

v0.12.30

VS Code version

1.70.2

Ansible Version

$ ansible --version
ansible [core 2.13.2]
  config file = /home/xx/projects/ansible/ansible.cfg
  configured module search path = ['/home/xx/.ansible/plugins/modules', '/usr/share/ansible/plugins/modules']
  ansible python module location = /home/xx/.local/lib/python3.10/site-packages/ansible
  ansible collection location = /home/xx/.ansible/collections:/usr/share/ansible/collections
  executable location = /home/xx/.local/bin/ansible
  python version = 3.10.4 (main, Apr  2 2022, 09:04:19) [GCC 11.2.0]
  jinja version = 3.0.3
  libyaml = True

OS / Environment

Windows 11 Enterprise -> VS Code -> WSL Ubuntu 22.04 LTS

$ ansible-lint --version ansible-lint 6.0.2 using ansible 2.13.2

$ ansible --version | grep “python version” python version = 3.10.4 (main, Apr 2 2022, 09:04:19) [GCC 11.2.0]

Relevant log output

Path for lint:  /home/xx/.local/bin/ansible-lint
Validating using ansible-lint
cmd 'python --version' was not executed with the following error: ' Error: Command failed: python --version
/bin/sh: 1: python: not found

cmd 'ansible-lint --version' has the following error: WARNING: PATH altered to include /usr/bin

[Info  - 7:30:08 PM] [ansible-lint] WARNING: PATH altered to include /usr/bin
WARNING  Loading custom .yamllint config file, this extends our internal yamllint config.

Issue Analytics

  • State:closed
  • Created a year ago
  • Reactions:5
  • Comments:11 (4 by maintainers)

github_iconTop GitHub Comments

2reactions
ssbarneacommented, Sep 16, 2022

Lets see what @priyamsahoo can say about it, maybe we failed to release ALS. He had few days of vacation but should be back next week. I will reopen the bug so we do not forget about it.

1reaction
max06commented, Sep 15, 2022

Closing as we already released a fix for few days ago.

Hey @ssbarnea, when do you expect this fix to arrive? As of v0.13.68 (pre-release) this issue still persists.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Misleading errors for schema validation of meta file #2157
When having a meta yaml, the error message for validation was misleading in my case. Issue Type. Bug Report. Ansible and Ansible Lint...
Read more >
Avoid errors in your Ansible playbooks with ansible-lint
A linter is designed to catch errors in data before a file is processed. This saves you (or your automated workflow) from errors...
Read more >
Ansible module that allows git init and avoids ansible-lint ...
I was trying to write an Ansible task that essentially performs a git init in a folder without ansible-lint complaining. But I can't...
Read more >
Ansible Lint - Read the Docs
No information is available for this page.
Read more >
ansible-lint - PyPI
Ansible -lint. ansible-lint checks playbooks for practices and behaviour that could potentially be improved. As a community backed project ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found