Hi,
Below is the command i need executed as part of IOS upgrade activiity. As
you can see, it involves 2 prompts. So how do i write a script using
ios_command module when multiple prompts are involved?
install add file flash:cat9k_lite_iosxe.16.12.01.SPA.bin activate commit
This operation requires a reload of the system. Do you want to proceed?
Please confirm you have changed boot config to flash:packages.conf [y/n]y
--- Starting initial file syncing ---
This operation requires a reload of the system. Do you want to proceed?
[y/n]y
Will the below script work?
ios_command:
commands:
command: install add file flash:cat9k_lite_iosxe.16.12.01.SPA.bin
activate commit
prompt: ‘Do you want to proceed?'
answer: 'y'
prompt: ‘Do you want to proceed?'
answer: 'y'
--
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/6afa73b6-0290-4937-b89e-407c209b8469n%40googlegroups.com.