Ansible Playbook for Cisco IOS Upgrade

preview_player
Показать описание
In this video I will be using an Ansible Playbook for Cisco IOS Upgrade on a 2960 switch.

✅ Subscribe to my Channel and get more great tips

Check out my courses

This will step you through every step of the way on how to perform this task.

Have you got 100’s or 1000’s of Cisco switches or routers to perform a software upgrade on?

Looking for a simple way to upgrade Cisco IOS remotely? Or perform the task without manually logging into each device?

Ansible is a great way to perform software upgrades on network devices.

This Ansible Playbook will upgrade your Cisco IOS switches with ease!

🎞️ - Video Chapters
00:00 Playbook Introduction
01:14 Check current image with Ansible ios_facts
02:40 Backup running-config
04:10 Ansible net_put module to copy image
06:36 Change boot variable
07:00 Reload Switch
07:51 Ansible cli_command module
10:36 Live Playbook run

#networkautomation #netdevops #ansible

NOTE: The advice given here is purely for educational purposes. Please test this upgrade process out before pressing the button on 100’s of devices. Every network environment is different. Ensure you are 100% happy with the process before updating multiple Cisco switches in a production environment. I cannot be held responsible for any outages caused by Cisco switches failing to reboot!
Рекомендации по теме
Комментарии
Автор

Great video Roger and like the Ansible cap! :)

kenmurphy
Автор

Thank you for sharing this useful demo, it is awesome!

MahmoudTaha
Автор

Great video. Very practical. Just what I need as a beginner in ansible. You really won me over. Please do more of these practical stuffs.

uche
Автор

Excellent video, Roger! Thank you for sharing.

mihaigrigore
Автор

Before this video Ansible was scary for me, now after watching this I can say I feel at home, Thanks ROger! Subscribed.

MrEDGE
Автор

Hi Roger,

I want to skip the upgrade if the current version and upgrade image are same.. But looks like it skip the debug message but start running other tasks.. ? Any inputs?

RohitPatil-qxtf
Автор

excellent work - i'm starting to study ansible to automate daily tasks! appreciate your videos!

Aldrin
Автор

Great video.Thank you for sharing your knowledge.

SadhamHussainsree
Автор

Thank for this video. Much appreciated Roger !! :)

gouravrelhan
Автор

Excellent video...we appreciate your time 👍👍👍.

sameerthorappa
Автор

For reloading a Cisco IOS device, you'll need to hit "enter" or return key i.e., "\r" instead of 'y' in Ansible script. Although, 'y' may work but it's good to use proper commands.

afara
Автор

Awesome video! In my opinion you can use command " write memory", which no require "Yes" for answer and for the network switch you can use console connection instead SSH. Cheers.

bantacad
Автор

Great playbook. Worth adding and MD5 verify task, before reloading the router?

martinbuffleo
Автор

Thank you Roger, it's been a really useful demo.
For a firmware upgrade routine like that I'd suggest checking the new firmware file md5 checksum before reloading the device just to prevent it turning into a brick that fails to reboot due to a corrupted file.
Thank you for the video series, very cool, keep it up.

edsonrocks
Автор

Great video Roger! How long would you say the entire upgrade process took from running the yml file in ansible to the completion of the upgrade? I intend to run this in a prod environment on over 30 network devices.

koye
Автор

Thanks for the video.. A very good script.. Please upload new videos for upgrade of the fortigate and palo alto devices

RohitPatil-qxtf
Автор

thanks Roger for this video.
why I am getting this error .
fatal: [R1]: FAILED! => {"changed": false, "msg": "path specified in src not found"}
I tried ~ or / , file path correct but it just cant get it.

umakantjena
Автор

Hello, was the advertised "next video" where you automate all this stuff ever released ? Or is it part of the pay course ? Anyway, thanks for this very informative video.

adonf
Автор

Great video - more network ansible please, especially the impact of ansible changes on routing tables

chrisdotbrown
Автор

Awesome video! Thank you Roger. A small question, do you covert this kind of upgrade for wireless controller and ASA in your course on your website? If yes I am really interested.
I am currently working on upgrading our infrastructure devices (switches, WLC, ASA) it would be nice if you could share how to perform this kind of tasks with Ansible.
Please let me know.
Thank you again for the great video!

sbahb