Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ansible module might return an error: "invalid connection specified, expected connection=local, got network_cli" #80

Open
juanda2 opened this issue Feb 26, 2020 · 0 comments

Comments

@juanda2
Copy link

juanda2 commented Feb 26, 2020

If ansible module returns an error: "invalid connection specified, expected connection=local, got network_cli"
it is due to the venv not getting created properly (unknown why)

The solution is to delete or deactivate the virtual environment, and try again. Then, after installing the requirements the ansible version should get updated properly and change from:

(venv) [developer@centos intro-ansible]$ ansible --version
ansible 2.4.3.0
(...)
python version = 2.7.5 (default, Aug 4 2017, 00:39:18) [GCC 4.8.5 20150623 (Red Hat 4.8.5-16)]

to this:

(venv2) [developer@centos intro-ansible]$ ansible --version
ansible 2.5.4
(...)
python version = 3.6.5 (default, Mar 31 2018, 15:47:21) [GCC 4.8.5 20150623 (Red Hat 4.8.5-16)]

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant