Ansible Error with ""msg": "the connection plugin 'network_cli' was not found""

245 views
Skip to first unread message

Myung-Soo Ko

unread,
Nov 15, 2023, 9:44:40 AM11/15/23
to Ansible Project

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. 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/': <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/': <urlopen error TLS/SSL connection has been closed (EOF) (_ssl.c:992)>
[user1@ansible002 ~]$

Reply all
Reply to author
Forward
0 new messages