Re: [ansible-project] Re: Ansible upgrade cisco switch stack firmware

2021-03-12 Thread Ganesh Nalawade
If the high value of persistent command timeout is applicable for one task it can be set at task level. Refer https://docs.ansible.com/ansible/devel/network/user_guide/network_debug_troubleshooting.html#command-timeout On Sat, 13 Mar 2021 at 1:40 AM, madd...@gmail.com wrote: > I answered my own

Re: [ansible-project] Re: Ansible upgrade cisco switch stack firmware

2021-03-12 Thread madd...@gmail.com
I answered my own question ;) I added command_timeout = 2700 to group_vars Have a good weekend On Friday, March 12, 2021 at 1:32:37 PM UTC-5 madd...@gmail.com wrote: > I resolved this by editing the ansible.cfg variable command_timeout = 30 > to command_timeout = 2700 (accounting for the

Re: [ansible-project] Re: Ansible upgrade cisco switch stack firmware

2021-03-12 Thread madd...@gmail.com
I resolved this by editing the ansible.cfg variable command_timeout = 30 to command_timeout = 2700 (accounting for the long operation of copying files across stack members and updating. I'd rather not keep this variable at 2700. Is there a way I can temporarily set this variable in group_var

Re: [ansible-project] Re: Ansible upgrade cisco switch stack firmware

2021-03-12 Thread madd...@gmail.com
I have tried using: ansible.netcommon.cli_command Here is the snippet of playbook that is failing: - name: Copy IOS to all stack members and update ansible.netcommon.cli_command: command: install add file flash:cat9k_lite_iosxe.16.12.04.SPA.bin activate commit

Re: [ansible-project] Re: Ansible upgrade cisco switch stack firmware

2021-03-11 Thread madd...@gmail.com
Thanks Ganesh, I'll give that a try and let you know. On Thursday, March 11, 2021 at 10:32:15 AM UTC-5 gane...@gmail.com wrote: > You can use cli_command module to handle multiple prompts on network > device. > Refer: > >

Re: [ansible-project] Re: Ansible upgrade cisco switch stack firmware

2021-03-11 Thread Ganesh Nalawade
You can use cli_command module to handle multiple prompts on network device. Refer: https://docs.ansible.com/ansible/latest/collections/ansible/netcommon/cli_command_module.html On Thu, 11 Mar 2021 at 8:37 PM, madd...@gmail.com wrote: > I ended up running the following manually. I just need a

[ansible-project] Re: Ansible upgrade cisco switch stack firmware

2021-03-11 Thread madd...@gmail.com
I ended up running the following manually. I just need a way for ansible to wait for certain prompts and allow the process to complete without ansible failing the job. Again, any suggestions would be appreciated. Here is the manual command ran: 9200L-24T-4G-E_2#$*install add file