Docs: https://www.rogerperkin.co.uk/network-automation/ansible/cisco-ios-upgrade-for-switch/
Copy the software to the remote switch Change the boot variable Reload the switch Wait patiently while it comes back online or
Get remote assistance to console into the switch locally Copy the software to the switch Change the boot variable Reload the switch Watch the switch reboot