hello ,
I want to perform task on brocade and arista switch . Will you guide how 
ansible will connect with switches to perform tasks .....




=========================================================================

On Thursday, 18 July 2019 20:17:39 UTC+5:30, rajthecomputerguy wrote:
>
> 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#"
> }
>
>

-- 
You received this message because you are subscribed to the Google Groups 
"Ansible Project" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/ansible-project/a3d5a0e4-cd16-4263-aba3-dadf46f3990d%40googlegroups.com.

Reply via email to