Hi team
getting below error . Please help . this is happening when upgrading cisco 3850
12 - name: expand the IOS file and copy to 2 switches
13 ios_command:
14 commands:
15 - ‘software install file flash:{{ new_system_image }} on-reboot’
16 timeout: 10000
Error message:
The full traceback is:
WARNING: The below traceback may not be related to the actual failure.
File “/tmp/ansible_ios_command_payload_KqsA0e/ansible_ios_command_payload.zip/ansible/module_utils/network/ios/ios.py”, line 145, in run_commands
return connection.run_commands(commands=commands, check_rc=check_rc)
File “/tmp/ansible_ios_command_payload_KqsA0e/ansible_ios_command_payload.zip/ansible/module_utils/connection.py”, line 173, in rpc
raise ConnectionError(to_text(msg, errors=‘surrogate_then_replace’), code=code)
[DEPRECATION WARNING]: Param ‘timeout’ is deprecated. See the module docs for more information. This feature will be removed in version 2.9. Deprecation warnings
can be disabled by setting deprecation_warnings=False in ansible.cfg.
fatal: [10.177.131.110]: FAILED! => {
“changed”: false,
“invocation”: {
“module_args”: {
“auth_pass”: null,
“authorize”: null,
“commands”: [
“software install file flash:cat3k_caa-universalk9.16.06.05.SPA.bin on-reboot”
],
“host”: null,
“interval”: 1,
“match”: “all”,
“password”: null,
“port”: null,
“provider”: null,
“retries”: 10,
“ssh_keyfile”: null,
“timeout”: 10000,
“username”: null,
“wait_for”: null
}
},
“msg”: “software install file flash:cat3k_caa-universalk9.16.06.05.SPA.bin on-reboot\r\n ^\r\n% Invalid input detected at ‘^’ marker.\r\n\r\nSwitch#”
}