# Ansible Error with ""msg": "the connection plugin 'network\_cli' was not found""

**URL:** <https://forum.ansible.com/t/ansible-error-with-msg-the-connection-plugin-network-cli-was-not-found/38582>\
**Category:** Ansible Project\
**Tags:** galaxy-ng\
**Created:** [November 15, 2023, 5:30am UTC](https://forum.ansible.com/t/ansible-error-with-msg-the-connection-plugin-network-cli-was-not-found/38582 "2023-11-15T05:30:27Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![bacchus21](https://avatars.discourse-cdn.com/v4/letter/b/bbe5ce/32.png) [@bacchus21](https://forum.ansible.com/u/bacchus21)\
**Post date:** [November 15, 2023, 5:30am UTC](https://forum.ansible.com/t/ansible-error-with-msg-the-connection-plugin-network-cli-was-not-found/38582/1 "2023-11-15T05:30:27Z")

</div>

Hello, All

I’m getting the following errors while I was running a playbook. It used to be working fine before. However, the old server was broken and, we built a new server. Not sure it’s because of ansible version, but keep getting these error for all playbooks. The current ansible version is ansible [core 2.14.2]

[user1@ansible002 inventories]# ansible ios -i $ANSPATH/inventories/inv-test-simple\_for\_testing.yml -m ping  
OOOOO-XXX-SW01 | FAILED! =\> {  
“msg”: “the connection plugin ‘network\_cli’ was not found”  
}  
[user1@ansible002 inventories]#

· my code!

all:

children:

ios:

vars:

ansible\_network\_os: ios

ansible\_connection: network\_cli

hosts:

OOOOO-XXX-SW01:

And there were some feedback that network\_cli became part of the ansible.netcommon collection. Is installing ansible-galaxy the only solution to resolve this issue?

Actually, I tried to install ansible.netcommon collection, but keep getting the following error. Does anyone have any clue? Thank you in advance!

[user1@ansible002 ~]$ ansible-galaxy collection install ansible.netcommon --force Starting galaxy collection install process  
Process install dependency map  
[WARNING]: Skipping Galaxy server [https://galaxy.ansible.com](https://galaxy.ansible.com/). Got an unexpected error when getting available versions of collection ansible.netcommon: Unknown error when attempting to call Galaxy at ‘[https://galaxy.ansible.com/api/](https://galaxy.ansible.com/api/)’: \<urlopen error TLS/SSL connection has been closed (EOF) (\_ssl.c:992)\>  
ERROR! Unknown error when attempting to call Galaxy at ‘[https://galaxy.ansible.com/api/](https://galaxy.ansible.com/api/)’: \<urlopen error TLS/SSL connection has been closed (EOF) (\_ssl.c:992)\>  
[user1@ansible002 ~]$
