You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
All of my scripts worked last week with regard to this situation. I upgraded OS and Mac Sequoia broke a few things, Python modules are no longer installed outside of venv instances. I fixed those issues.
Ansible specific is the network_cli module can no longer SSH into switches.
The full traceback is:
File "/Users/directory/.ansible/collections/ansible_collections/cisco/ios/plugins/module_utils/network/ios/ios.py", line 60, in get_capabilities
capabilities = Connection(module._socket_path).get_capabilities()
File "/Users/directory/Library/Python/3.9/lib/python/site-packages/ansible/module_utils/connection.py", line 200, in rpc
raise ConnectionError(to_text(msg, errors='surrogate_then_replace'), code=code)
fatal: [basta-home]: FAILED! => changed=false
invocation:
module_args:
commands:
- show run | inc snmp-server location
interval: 1
match: all
retries: 9
wait_for: null
msg: '[Errno None] Unable to connect to port 22 on 10.10.10.1'
I can ssh directly to the switch without issue using the username and password in the Ansible Playbook.
The text was updated successfully, but these errors were encountered:
All of my scripts worked last week with regard to this situation. I upgraded OS and Mac Sequoia broke a few things, Python modules are no longer installed outside of venv instances. I fixed those issues.
Ansible specific is the network_cli module can no longer SSH into switches.
The full traceback is:
File "/Users/directory/.ansible/collections/ansible_collections/cisco/ios/plugins/module_utils/network/ios/ios.py", line 60, in get_capabilities
capabilities = Connection(module._socket_path).get_capabilities()
File "/Users/directory/Library/Python/3.9/lib/python/site-packages/ansible/module_utils/connection.py", line 200, in rpc
raise ConnectionError(to_text(msg, errors='surrogate_then_replace'), code=code)
fatal: [basta-home]: FAILED! => changed=false
invocation:
module_args:
commands:
- show run | inc snmp-server location
interval: 1
match: all
retries: 9
wait_for: null
msg: '[Errno None] Unable to connect to port 22 on 10.10.10.1'
I can ssh directly to the switch without issue using the username and password in the Ansible Playbook.
The text was updated successfully, but these errors were encountered: