vscode-ansible: ansible-config dump error in console (conflict between system ansible and user installed ansible)
Summary
When loding a yml file, i get the following error in the console:
and linting, etc, does not work correctlt
Extension version
0.6.1
VS Code version
1.62.1
Ansible Version
ansible 2.10.15
config file = None
configured module search path = ['/home/sbloom/.ansible/plugins/modules', '/usr/share/ansible/plugins/modules']
ansible python module location = /home/sbloom/.local/lib/python3.8/site-packages/ansible
executable location = /home/sbloom/.local/bin/ansible
python version = 3.8.10 (default, Sep 28 2021, 16:10:42) [GCC 9.3.0]
OS / Environment
windows 10, wsl ubuntu 20.04
Relevant log output
No response
About this issue
- Original URL
- State: closed
- Created 3 years ago
- Comments: 15 (6 by maintainers)
@ssbarnea These command executions are actually the result of enabling ~/.bashrc in shell @thomascwells @stuartbloom-alvaria In fact, vscode extensions have a different behavior
Related Links:
So, You can check your ~/.profile, ~/.bash_profile and ~/.bashrc, etc
But it’s important to note that ~/.profile is not read by bash(1), if ~/.bash_profile or ~/.bash_login exists.
This reminder can be found in ~/.profile header
So you should make sure your path env var is correct in ~/.bash_profile, ~/.bash_login or ~/.profile,rather than ~/.bashrc
I hope my answer will help others in the same situation 😃