Relative Content

Tag Archive for ansiblecisco-ios

Ansible “[Errno -2] Name or service not known”

I am trying to make a collection of ansible playbooks to perform certain actions on an interface connected to a switch. For example, I want to bounce a port but before I do that, I want to check if the device is an uplink device, in which case the port should not be bounced. I am using cisco.ios.ios_command to run commands on the switch. I was previously able to run my scripts and it worked properly but when I attempted to run it the next day (no changes were made), I continue to get this error after entering my password to ssh into the switch: