Ansible Network Automation Example | Backup Cisco Router Playbook

  Рет қаралды 58,607

Roger Perkin

Roger Perkin

Күн бұрын

Пікірлер: 47
@RogerPerkin
@RogerPerkin 5 жыл бұрын
Like this video? - Please subscribe to my channel for updates and for more Ansible videos like this one check out all these other Videos I have made! kzbin.info/aero/PLplGU0K93TA6k5L6VX9mYnwgPK5MYe_9c
@yasirnawaz2798
@yasirnawaz2798 7 жыл бұрын
I would suggest to use ssh keys instead of plain text password. Mostly Cisco switches do support. Secondly, you can append date and time at the end of backup file by using $(date +%F_%R). e.g filename.$(date +%F_%R)
@TonyPearceau
@TonyPearceau 6 жыл бұрын
Thanks Roger, worked first time. Now to investigate pushing the configs into a private git repo after successful backup :)
@RogerPerkin
@RogerPerkin 6 жыл бұрын
Great stuff, very timely in that I am creating a lesson on Git today for my Ansible course learn-network-automation.teachable.com/p/ansible-for-network-engineers/
@RashidSiddiqui
@RashidSiddiqui 4 жыл бұрын
Hi Roger, is there a way that the output of the file is pushed back to the github library?
@kevishgurriah7735
@kevishgurriah7735 4 жыл бұрын
Any videos for acessing network devices through bastion/jump hosts?
@neeraj79
@neeraj79 5 жыл бұрын
Hi Roger, Wonderful video. How can you deploy firmware patches to Cisco devices using this method ?
@Roy4USA
@Roy4USA 8 жыл бұрын
sudo apt install ansible is how to install ansible on Ubuntu, Linux Mint, ...
@BradShifflett
@BradShifflett 7 жыл бұрын
will you be doing a follow-up on version control? I use Rancid for now, but this seems to be more robust on the things we could do for further automation.
@RogerPerkin
@RogerPerkin 7 жыл бұрын
Hi Brad, yes I will be doing a lot more videos and this is the introduction to a course I am writing on Automation for Network Engineers - it will all be here in the next few months. rogerperkin.co.uk/online-training/course/ansible-for-network-automation/ On lesson is version control - using time and date stamps and then also using Git Thanks for the comment
@sliddjur
@sliddjur 7 жыл бұрын
you should try oxidized (possibly with librenms)
@wecare30333333
@wecare30333333 6 жыл бұрын
Hi roger, great video, just want to ask how can I bounce a router to telnet or ssh to another router just like ssh proxy in netmiko ?
@RogerPerkin
@RogerPerkin 6 жыл бұрын
Can you re-phrase that question as I am not exactly sure what you are asking?
@wecare30333333
@wecare30333333 6 жыл бұрын
Roger Perkin yeah sure, I have infrastructure in my company where I need to require to login to a switch and from there only I can ssh or telnet to my other devices .to achieve that there is a option in netmiko module in python language which is called ssh proxy. So is there any similar feature in ansible.
@edvinaskai5899
@edvinaskai5899 7 жыл бұрын
hello, how to install (add) an ansible playbook to Ansible ? Thanks
@СергейВаренников-ы9о
@СергейВаренников-ы9о 7 жыл бұрын
ERROR! Syntax Error while loading YAML. The error appears to have been in '/etc/ansible/playbook/sw9_backup.yml': line 3, column 1, but may be elsewhere in the file depending on the exact syntax problem. The offending line appears to be: - hosts: sw9 gather_facts: true ^ here exception type: exception: while parsing a block collection in "", line 2, column 1 did not find expected '-' indicator in "", line 3, column 1
@sagardezignDOTcom
@sagardezignDOTcom 5 жыл бұрын
- host: sw9 gather_facts: true
@fatima-zahrabouhajban2390
@fatima-zahrabouhajban2390 7 жыл бұрын
Is it possible to do the same for Juniper/Alcatel-lucent Routers ?
@RogerPerkin
@RogerPerkin 7 жыл бұрын
Yes Ansible will work with Juniper - I will add another video shortly to show that
@fatima-zahrabouhajban2390
@fatima-zahrabouhajban2390 7 жыл бұрын
Thanks for your help :)
@sliddjur
@sliddjur 7 жыл бұрын
"shortly" ;)
@georgesmith3022
@georgesmith3022 7 жыл бұрын
Lets say i have 1000 routers and one is unreachable. After ssh timeout will it continue or stop? Also is there any way to run tasks in parallel in order to speed up the process?
@RogerPerkin
@RogerPerkin 5 жыл бұрын
hi George, if Ansible cannot connect to one router once it times out it will continue with the playbook run. Ansible by default will connect to 5 routers at a time, this can be increased but is down to performance of your Ansible host.
@ademdarguner
@ademdarguner 2 жыл бұрын
[WARNING]: Invalid characters were found in group names but not replaced, use -vvvv to see details ERROR! We were unable to read either as JSON nor YAML, these are the errors we got from each: JSON: No JSON object could be decoded Syntax Error while loading YAML. did not find expected '-' indicator The error appears to be in '/etc/ansible/playbooks/swconfig.yml': line 8, column 4, but may be elsewhere in the file depending on the exact syntax problem. The offending line appears to be: - name: show run ios_command: ^ here [root@ansible playbooks]# I saw problem this code. What's wrong with my code?
@elanbarirachid6581
@elanbarirachid6581 7 жыл бұрын
hello, thanks for this video , I have a question please! Ansible supports servers and juniper routers ? cause I need to know this so bad to implements it as soon as possible and thanks again :)
@RogerPerkin
@RogerPerkin 7 жыл бұрын
Yes, Ansible was originally developed for automation on servers, in the last few releases 2.1, 2.2 and now 2.3 it has many more modules for network devices and is rapidly becoming the goto tool for open source network automation.
@elanbarirachid6581
@elanbarirachid6581 7 жыл бұрын
thanks Mr Roger! I sent you a message on your fb account, can you please answer me ?
@RogerPerkin
@RogerPerkin 7 жыл бұрын
Don't see it - send me a message here - www.rogerperkin.co.uk/contact/
@kevinsequeira6114
@kevinsequeira6114 7 жыл бұрын
Roger, I'm an Acquisition Editor with Packt. Would you like to develop a video tutorial on Ansible and Cisco Integration?
@RogerPerkin
@RogerPerkin 7 жыл бұрын
Kevin, can you go to my website www.rogerperkin.co.uk/contact/ and send me a message -
@kevinsequeira6114
@kevinsequeira6114 7 жыл бұрын
Roger, I have dropped you a message. Looking forward to hearing from you.
@komalthecoolk
@komalthecoolk 7 жыл бұрын
Well... did it happen? We would all love a clear detailed training on Ansible + Cisco!
@RogerPerkin
@RogerPerkin 7 жыл бұрын
Hi Komalthecoolk, no I did not produce a course for Packt, I am working on one to launch from my own website, www.rogerperkin.co.uk by the end of the month, if you sign up there, you will be notified when it is ready and also get access to the free lessons as they are produced.
@RogerPerkin
@RogerPerkin 5 жыл бұрын
There is an updated version of this video here - kzbin.info/www/bejne/rWm2l2aojdOWqZI
@jamesbell2810
@jamesbell2810 5 жыл бұрын
0:57 AHEM, YAML literally stands for "Yaml Ain't Markup Language".
@RogerPerkin
@RogerPerkin 5 жыл бұрын
I have heard that one and I also heard Yet another Markup Language ?
@manuelstausberg8923
@manuelstausberg8923 4 жыл бұрын
stackoverflow.com/questions/6968366/if-yaml-aint-markup-language-what-is-it
@СергейВаренников-ы9о
@СергейВаренников-ы9о 7 жыл бұрын
not work:(
@EyadIsa
@EyadIsa 7 жыл бұрын
Thumbs up
@ijeomaijeoma2599
@ijeomaijeoma2599 5 жыл бұрын
i cant...bye
@praveenkumarraju1
@praveenkumarraju1 6 жыл бұрын
Hi Sir , I would like to contact you on how to install on Ansible and. How to learn. Pl ease help me out as I was passionate to learn Ansible. Any contact details of you
@ijeomaijeoma2599
@ijeomaijeoma2599 5 жыл бұрын
why do you keep smacking your lips??????????????
@neomatrix3612
@neomatrix3612 6 жыл бұрын
You sound like you're having trouble breathing..
@carreonccnn
@carreonccnn 5 жыл бұрын
LoL
@edgardsoliveira
@edgardsoliveira 3 жыл бұрын
Hey dude, are you eating something during the video?? tip for the next video: try to keep your lips normal...it sounds terrible for who is watching. By the way, congratulations for the video.
@RogerPerkin
@RogerPerkin 3 жыл бұрын
Thanks for the feedback, I need to re-record this video, the audio in my later ones is better!
you need to learn Ansible RIGHT NOW!! (Linux Automation)
21:21
NetworkChuck
Рет қаралды 906 М.
Ansible Playbook for Cisco IOS Upgrade
18:48
Roger Perkin
Рет қаралды 24 М.
IL'HAN - Qalqam | Official Music Video
03:17
Ilhan Ihsanov
Рет қаралды 700 М.
小丑教训坏蛋 #小丑 #天使 #shorts
00:49
好人小丑
Рет қаралды 54 МЛН
So Cute 🥰 who is better?
00:15
dednahype
Рет қаралды 19 МЛН
Network Automation with Ansible  [NTP Server & Regex Example]
15:12
Roger Perkin
Рет қаралды 2,8 М.
Ansible Network Automation
13:15
Alex Dworjan
Рет қаралды 1,7 М.
Ansible Playbook Example to Backup Cisco Router or Switch Config
13:26
get started with Ansible Network Automation (FREE cisco router lab)
15:02
Ansible For Network Engineers: Getting Started In Less Than 30 Minutes!
26:32
Ansible Jinja2 Template Tutorial  Network Automation Cisco
18:56
Roger Perkin
Рет қаралды 50 М.
Ansible Network Modules | ios_conifg, nxos_config, cli_command
20:25
Introduction to Ansible Playbooks (and demonstration)
18:02
IL'HAN - Qalqam | Official Music Video
03:17
Ilhan Ihsanov
Рет қаралды 700 М.