Ansible Playbook Error related to Cisco and Network Switches.

80 views
Skip to first unread message

miqdad patwa

unread,
Apr 7, 2021, 10:21:59 AM4/7/21
to awx-p...@googlegroups.com
Hello Guys,

Can anyone face error which running playbooks on Cisco and Juniper Network switches via AWX.

The playbooks are working fine in CLI and Jenkins but in AWX even after putting all the details i see some weird errors.

Cisco:

TASK [cisco : Run the tech support query and copy it to FTP server] ************
38
task path: /tmp/awx_41_31wy6o93/project/roles/cisco/tasks/cisconetworkconfig.yml:6
39
The full traceback is:
40
WARNING: The below traceback may *not* be related to the actual failure.
41
File "/tmp/ansible_ios_command_payload_FS9nSX/ansible_ios_command_payload.zip/ansible/module_utils/network/ios/ios.py", line 86, in get_capabilities
42
capabilities = Connection(module._socket_path).get_capabilities()
43
File "/tmp/ansible_ios_command_payload_FS9nSX/ansible_ios_command_payload.zip/ansible/module_utils/connection.py", line 185, in __rpc__
44
raise ConnectionError(to_text(msg, errors='surrogate_then_replace'), code=code)
45
fatal: [hsbu7a]: FAILED! => {
46
"changed": false,
47
"invocation": {
48
"module_args": {
49
"auth_pass": null,
50
"authorize": true,
51
[…
...
69


Juniper:

image.png

The code is working fine normally. The playbook is basically to collect config backups on Juniper and Cisco Network switches.

Can anyone check and confirm with these errors.

Thanks & Regards
Miqdaad Patwa

Reply all
Reply to author
Forward
0 new messages