Updating cisco 2514 ios
Here we have created a block which correlated with a conditional when statement near the end of the playbook that tells ansible to proceed if the md5 value we gave matches the one computed by the switch.
If Ansible seems overwhelming and you just want a reliable way to automate updating your Cisco (and other vendor) networking hardware then I recommend checking out Solarwinds Network Configuration Manager.
Another option would be to check out Solarwinds Network Config Manager which I’ve also linked below. Automate backing up configurations and updating of all your switching, routing, and firewall equipment without needing to know a single line of code with Solarwinds Network Configuration Manager.
Not only does it help you backup your network device configurations, but it can also be used to automate updating your switch and router gear’s software and firmware. This is one of those tools that pays for itself in man hours the first time you need to rely on it.
Finally, it saves the config after the change is made.
Here we have another block started which matches a conditional when toward the bottom that tells Ansible to proceed with reloading the device if we answered YES to the reboot question at the start of the play.