Ansible Network Automation

Поделиться
HTML-код
  • Опубликовано: 31 июл 2024
  • Learn how to use Ansible to automate Cisco IOS network devices. This is the future: Network Automation using Ansible and Python. If you want to be a network engineer in future, you need to learn Cisco DevNet and automation technologies.
    Menu:
    0:00 ▶ Welcome
    0:12 ▶ Who is Donald?
    1:00 ▶ Books that Donald wrote
    1:22 ▶ What is Ansible and why is it recommended?
    2:27 ▶ Idempotency
    3:50 ▶ Create a project
    4:20 ▶ Create a hosts.ini file
    5:00 ▶ Agent vs agentless / puppet vs ansible
    7:40 ▶ What does Ansible use to connect to devices
    17:40 ▶ New / Better way of doing things (hosts.yml)
    23:20 ▶ Which is better?
    24:01 ▶ Global ansible.cfg file
    27:30 ▶ Never use tab
    27:55 ▶ Create a repository
    30:20 ▶ Do you need to use Gi
    30:35 ▶ Is Linux recommended? Or is Windows ok?
    31:24 ▶ Can you use a Mac?
    31:52 ▶ Redo the process using public github
    35:34 ▶ Files on github
    36:02 ▶ Copy files to the Ansible server
    37:55 ▶ Create a virtual environment
    38:38 ▶ Install Ansible
    41:40 ▶ Check the ansible docs
    43:55 ▶ Run Ansible adhoc commands
    46:20 ▶ What did ping do?
    47:50 ▶ What is an Ansible playbook
    48:20 ▶ Create Ansbile playbook
    53:09 ▶ Run Ansible Playbooks
    56:06 ▶ Add an IP address
    Code: github.com/the-packet-thrower...
    Amazon books: amzn.to/2Wm639i
    ================
    Connect with me:
    ================
    Discord: / discord
    Twitter: / davidbombal
    Instagram: / davidbombal
    LinkedIn: / davidbombal
    Facebook: / davidbombal.co
    TikTok: / davidbombal
    RUclips: / davidbombal
    =================
    Connect with Donald:
    =================
    LinkedIn: / the-packet-thrower
    Blog: the-packet-thrower.com/
    GitHub: github.com/the-packet-thrower...
    ansible
    devnet
    cisco devnet
    ansible automation
    network automation
    python
    Please note that links listed may be affiliate links and provide me with a small percentage/kickback should you use them to purchase any of the items listed or recommended. Thank you for supporting me and this channel!
    #ansible #devnet #ccna
  • НаукаНаука

Комментарии • 129

  • @vidyachandrasekar2566
    @vidyachandrasekar2566 2 года назад +12

    Hey David, Thank you so much for taking the time to educate us all. Appreciate your hard work !!

  • @jag831
    @jag831 2 года назад +15

    Thank you David. Somehow everytime Im researching something you upload a video related to it, this is amazing
    (Yes, I needed guidance on Ansible this week)

  • @sayanchowdhury8102
    @sayanchowdhury8102 2 года назад +4

    Hey David..many thanks for how you have been guiding us fellow network engineers.. you are the one and only..thanks again..I certainly look upto your content day in day out.. Cheers!!

  • @thelazyanh
    @thelazyanh 2 года назад +2

    I am working on CCNA exam and looking for some good content about Ansible. Thank you David, you're my life saver.

  • @angelsepulveda9211
    @angelsepulveda9211 2 года назад +11

    This awesome, been thinking on how to get started with Ansible, David to the rescue. Can't wait to see more!

  • @javacqt
    @javacqt 2 года назад +2

    Thank you for this David, I would like to think that for an 1h video you get a lot more views but I'm pretty sure its quite the opposite. Because of that I want to thank you even more, because for the few ones that stayed the whole hour this can help tremendously.

  • @MrWinfil
    @MrWinfil Год назад +1

    Thank you, David so much for this Video, I'm a Network Engineer, and today my company will deploy Automation tools, and I'm trying to train myself on ANSIBLE, Keep uploading these topics.

  • @ncbowden1963
    @ncbowden1963 2 года назад +1

    Great video! Looking forward to more on Ansible. Thanks for making this great content available.

  • @davidbombal
    @davidbombal  2 года назад +10

    Menu:
    0:00 ▶ Welcome
    0:12 ▶ Who is Donald?
    1:00 ▶ Books that Donald wrote
    1:22 ▶ What is Ansible and why is it recommended?
    2:27 ▶ Idempotency
    3:50 ▶ Create a project
    4:20 ▶ Create a hosts.ini file
    5:00 ▶ Agent vs agentless / puppet vs ansible
    7:40 ▶ What does Ansible use to connect to devices
    17:40 ▶ New / Better way of doing things (hosts.yml)
    23:20 ▶ Which is better?
    24:01 ▶ Global ansible.cfg file
    27:30 ▶ Never use tab
    27:55 ▶ Create a repository
    30:20 ▶ Do you need to use Gi
    30:35 ▶ Is Linux recommended? Or is Windows ok?
    31:24 ▶ Can you use a Mac?
    31:52 ▶ Redo the process using public github
    35:34 ▶ Files on github
    36:02 ▶ Copy files to the Ansible server
    37:55 ▶ Create a virtual environment
    38:38 ▶ Install Ansible
    41:40 ▶ Check the ansible docs
    43:55 ▶ Run Ansible adhoc commands
    46:20 ▶ What did ping do?
    47:50 ▶ What is an Ansible playbook
    48:20 ▶ Create Ansbile playbook
    53:09 ▶ Run Ansible Playbooks
    56:06 ▶ Add an IP address
    Code: github.com/the-packet-thrower/davids-ansible-public
    Amazon books: amzn.to/2Wm639i
    Learn how to use Ansible to automate Cisco IOS network devices. This is the future: Network Automation using Ansible and Python. If you want to be a network engineer in future, you need to learn Cisco DevNet and automation technologies.
    ================
    Connect with me:
    ================
    Discord: discord.com/invite/usKSyzb
    Twitter: twitter.com/davidbombal
    Instagram: instagram.com/davidbombal
    LinkedIn: www.linkedin.com/in/davidbombal
    Facebook: facebook.com/davidbombal.co
    TikTok: tiktok.com/@davidbombal
    RUclips: ruclips.net/user/davidbombal
    =================
    Connect with Donald:
    =================
    LinkedIn: www.linkedin.com/in/the-packet-thrower
    Blog: the-packet-thrower.com/
    GitHub: github.com/the-packet-thrower/davids-ansible-public
    ansible
    devnet
    cisco devnet
    ansible automation
    network automation
    python
    Please note that links listed may be affiliate links and provide me with a small percentage/kickback should you use them to purchase any of the items listed or recommended. Thank you for supporting me and this channel!
    #ansible #devnet #ccna

  • @vyasG
    @vyasG 2 года назад +2

    Thank You David and Donald for this Informative Video.

  • @seanbrewer6269
    @seanbrewer6269 Год назад

    This video was awesome, I got Ansible set up within CML on an ubuntu server and it was a great way to practice network automation within a lab enviroment, really enjoyed this video.

  • @artemnovak7065
    @artemnovak7065 2 года назад +2

    Great video, I would like to see video series about Ansible, not only with network devices but also servers.

  • @vishalraj7532
    @vishalraj7532 2 года назад +8

    Soon we reach 1 Million RUclips family. Can't wait for that beautiful moment😍😍

  • @epicadventures6871
    @epicadventures6871 2 года назад +1

    This is an excellent video on Ansible. Look forward to more of these.

  • @craigreid9553
    @craigreid9553 2 года назад +2

    Woohoo New Ansible/Network Automation content, Thanks David and Donald

  • @ThePacketThrower
    @ThePacketThrower 2 года назад +5

    Thanks for having me on David!

    • @davidbombal
      @davidbombal  2 года назад +1

      Thank you for this Donald! And thank you for your patience getting this published 😀

  • @adalbertoguerra8402
    @adalbertoguerra8402 2 года назад +4

    I love watching your videos David, always great content.!!! I learn a lot from your videos.!!!

  • @educastellini
    @educastellini 2 года назад +6

    -Very good to see you teaching together as I said in Discord several times Donald is one of the best professionals I've ever had the opportunity to meet...!!!
    -Now all that's left is for Kevin to do a class like that too...!!!
    -Thanks for the knowledge always professors David Bombal and Donald Robb...!!!

    • @ThePacketThrower
      @ThePacketThrower 2 года назад +1

      Thanks! We got plenty more down the pipe!

    • @educastellini
      @educastellini 2 года назад +1

      @@ThePacketThrower -Donald create a VyOS and CloudStack course please...!!!
      -I'm studying alone and it would be nice to have a course on Udemy with Labs and one programming using in base the VyOS certification.

    • @ThePacketThrower
      @ThePacketThrower 2 года назад +1

      @@educastellini Might be a good idea, I just did the VyOS cert last month!

  • @jtorajakumary
    @jtorajakumary 2 года назад +2

    Thank you David Bombal for the wonderful session.

  • @crazygeniusgamer697
    @crazygeniusgamer697 2 года назад +2

    Thank you sir, I am from India and I don't have enough money to buy a course or learn hacking you help me a lot 💓

  • @venus334
    @venus334 2 года назад +1

    Just made My afternoon. Thanks David

  • @sayedsekandar
    @sayedsekandar 2 года назад +2

    Thank you so much, David Sir for your hard effort.

  • @davidraymond7420
    @davidraymond7420 2 года назад +1

    Nice video, can’t wait until the next one 👍

  • @tiisetsangthaba9814
    @tiisetsangthaba9814 2 года назад +2

    I enjoyed it but it's very hard ...
    I will keep watching till I understand everything...
    I appreciate your efforts to help us.. I am really getting inlove with IT....

  • @pedropaixao1992
    @pedropaixao1992 2 года назад +1

    Another great video, please publishes more about ansible, python and other automation tools. Thanks

  • @madaraekouta8058
    @madaraekouta8058 2 года назад +1

    Network automation is where we 're going , it is where the world is looking at....... every network engineer nowaday has to learn about Network Automation..................

  • @NetworkNinja111
    @NetworkNinja111 Год назад

    Always great content. Super challenging though just setting up the lab. I'd like to see a video on just setting up the lab. I'm trying to follow along, but I'm stuck installing pycharm on my ubuntu vm. I'm going to update each step of the way and document it as well!! Thanks David B.!!!!!!!!!

  • @javierdepedro7207
    @javierdepedro7207 2 года назад +1

    Great video!!!! Thank you very much.
    Waiting for the next
    Good job

  • @Sanjaykumar-so9sf
    @Sanjaykumar-so9sf 2 года назад +1

    David sir ,super excited for ansible 👍👍

  • @wasimashraf8280
    @wasimashraf8280 2 года назад +1

    My most favourite topics 🥰🥰 Thanks David sir ❤️💗

  • @gauravkavat
    @gauravkavat 2 года назад +1

    Nice one sir.
    Your videos inspired me to pursue programming as a carrier

  • @greagmcnord2220
    @greagmcnord2220 2 года назад +1

    thank you Boss David....this is great..

  • @ulasaydin825
    @ulasaydin825 2 года назад +1

    This is a great video, so helpful, thanks a lot

  • @kyawlinnsoe1273
    @kyawlinnsoe1273 2 года назад +1

    Thank you very much, Sir David

  • @user-uw7st6vn1z
    @user-uw7st6vn1z 2 года назад +1

    Good sharing thanks David!

  • @MohamedSalah-S
    @MohamedSalah-S 2 года назад +2

    cant wait for tomorrow giveaway and thanks David for the huge effort

  • @malliakarai1
    @malliakarai1 2 года назад +3

    David = Google for network engineers.

  • @karthickvk4599
    @karthickvk4599 2 года назад +1

    Thank you David ❤️

  • @abedzaben
    @abedzaben 2 года назад +1

    Thanks David, much appreciated.
    I am trying to find part 2 as Donald mentioned but I couldn't find it.

  • @sultansaab7168
    @sultansaab7168 2 года назад

    Sit thank you for the amazing video

  • @MsTarguisti
    @MsTarguisti 2 года назад +1

    Amazing!

  • @RayBitton
    @RayBitton 2 года назад +2

    Great video! Thanks for sharing.
    I work in an isp company and actually in the middle of a project where I use ansible exactly as shown in this video.
    My ansible playbooks will eventually provision new orders coming from our erp system and will configure business customer's connections through our network. Ansible will do a lot of heavy lifting to setup L2, vlans, ip addresses...etc in our infrastructure. Fun project! Looking forward to get more ideas to upgrade my playbooks from you videos series.

    • @RayBitton
      @RayBitton 2 года назад +1

      I would appreciate if you would consider demonstrate best practice to gather facts, save them (SQL DB maybe) and then run the playbook based on those variables.

    • @ThePacketThrower
      @ThePacketThrower 2 года назад

      @@RayBitton We'll get there!

  • @gjsatru3383
    @gjsatru3383 2 года назад +2

    First one to watch it David hope to know me . Still watching and enjoying the video......

  • @IN2MINUTES
    @IN2MINUTES 2 года назад

    Thanks for helping us

  • @syedasadjamal3041
    @syedasadjamal3041 2 года назад +1

    Awesome content

  • @tribervirus2932
    @tribervirus2932 2 года назад

    you are my idol and mentor and its my wish to meet you one day in my life . your content is amazing sir i learn everything from you and now i become a hacker because of you thanks sir.

  • @nitinchandna3016
    @nitinchandna3016 2 года назад +2

    Thank you for the input on how to start with Ansible. I did follow the logic and created my own lab with AOScx images. I am looking for some guidance to get over a challenge where the ansible module loaded on Ubuntu is unable to ping the switch. I can do both ping & ssh from Ubuntu to switch but it's not working via the ansible module.
    ansible version- [core 2.12.2]
    Python= 3.8.10
    jinja ver= 2.10.1

  • @knightwanter
    @knightwanter 2 года назад

    Thankyou David sir

  • @MK-jf1rv
    @MK-jf1rv 2 года назад

    Thank you 🙏😊

  • @mehdicherifi6289
    @mehdicherifi6289 2 года назад +1

    Great 👍

  • @MK-jf1rv
    @MK-jf1rv 2 года назад

    Super content

  • @kintag4459
    @kintag4459 2 года назад

    Awesome Thank you M.r

  • @nabeats221
    @nabeats221 2 года назад +1

    🔥🔥🔥

  • @gardensindeze2568
    @gardensindeze2568 2 года назад +3

    hi david in our country Ethiopia with in aa comming years there will be a demand of certified network engineer for telecomunication due to two international telecomunication infrastructure investeres have been win to expand the infrastructure so how do pass the interview quation of this organization and where area shall i focuse to be skillfull for their organization to be selected ? thank you David Bombal

  • @brianturney2124
    @brianturney2124 2 года назад +1

    I love this video. Tho I am wondering... Why would we want to install ansible in a virtual python env, in a virtual machine? or even on a physical machine?

  • @balakrishnakonakalla
    @balakrishnakonakalla 2 года назад +3

    Thank you Sir, expecting more content on the Devnet / Automation

    • @davidbombal
      @davidbombal  2 года назад +2

      I'll see what I can do 😀

  • @sinos_karan9515
    @sinos_karan9515 2 года назад +1

    Hello David sir !!!
    How are you ??//
    It's a big conversation ahh!!
    Thank you once again!!

  • @shesh1123
    @shesh1123 2 года назад +1

    Nice session. Thanks David. Was there a follow-up session after this?

  • @johnf5122
    @johnf5122 2 года назад +1

    Nice work, any estimate of when the next with Ansible Vault will be posted? Thanks

  • @robertprice7459
    @robertprice7459 Год назад

    Hi David, really enjoyed this video, have you done any further Ansible stuff with Donald?

  • @mohamednazaras
    @mohamednazaras 2 года назад +1

    Hi David ...Could you please refer the book for Network automation with Ansible and python.....? i would like to purchase and planning to start read...pls if any one knows assist with the name of book which available in Amazon or other online source to purchase.

  • @ajithj3131
    @ajithj3131 2 года назад +1

    Good content sir❤️
    But make video on how to install andrax or any linux in phone without rooting pls

  • @parshantkumar2455
    @parshantkumar2455 2 года назад +1

    sir, I recommend you also start your interview podcast on Spotify

  • @anshumishra9368
    @anshumishra9368 2 года назад +1

    Sir please help me out, after taking in mind my goal is to being penetration tester so please 🙏 tell me that should I go first for learning networking or programming??????? 🙏 please sir help me out.

  • @jgranahan
    @jgranahan 2 года назад

    if one has VMware Workstation, what would one need to run a virtual Router, as your guest was doing?

  • @skudmora
    @skudmora 2 года назад +1

    I'm very curious how he setup his Pycharm. Mine looks completely different and I don't know how to set it up like his, or of that even matters.

  • @alejandrorodriguez3771
    @alejandrorodriguez3771 2 года назад +2

    Ansible vs Terraform... What do you use? What do you recommend to major first, taking into account that I am a network engineer, but getting into cloud.

    • @ThePacketThrower
      @ThePacketThrower 2 года назад +4

      Ansible is generally more useful for networking stuff, Terraform is meant for building resources rather than configuring them

  • @abdalrhmancisco3249
    @abdalrhmancisco3249 2 года назад

    ❤️

  • @tubeyou8472
    @tubeyou8472 2 года назад

    ty bombal

  • @zzz-lz6is
    @zzz-lz6is 11 месяцев назад

    HI David ! question : do you recommend taking RHCSA after completing CCNA? i really like linux but i feel that everything is cisco based so im thinking RHCSA might be not the best option after CCNA...? 🤔

  • @jimmyrodriguez5034
    @jimmyrodriguez5034 15 дней назад

    YAML supports tab, but I think PyCharm may not. No issues in VSCode, but that may also be the YAML VSC extension.

  • @w1d3r75
    @w1d3r75 2 года назад +2

    Does anyone know if there's a application to work through this kind of labs, like testing a router, switches, fir3 walls?. I dont have any access to physical devices like the mentioned above

    • @davidbombal
      @davidbombal  2 года назад +2

      You could use CML for Cisco devices. Or GNS3 or EVE-NG if you want multivendor.

    • @w1d3r75
      @w1d3r75 2 года назад

      @@davidbombal I'll check them out. Thank you!

    • @ThePacketThrower
      @ThePacketThrower 2 года назад +1

      @@davidbombal CML can be multi-vendor too!

    • @davidbombal
      @davidbombal  2 года назад +1

      Agreed, but then you have to pay for CML. But with GNS3/EVE-NG you could create networks for free (without Cisco & depends on vendor).

  • @mariembuenaventura1278
    @mariembuenaventura1278 2 года назад +2

    Thank you sir! Can I use ansible for non Cisco Devices?

  • @ahdimarketing9073
    @ahdimarketing9073 2 года назад

    No5 to like the video.

  • @kimanimichael3406
    @kimanimichael3406 Год назад +1

    good tutorials. How much is the book?

  • @dnkc8620
    @dnkc8620 2 года назад +1

    Woowww...
    First time on top 50 comments.

    • @davidbombal
      @davidbombal  2 года назад +1

      Thank you for your support!

  • @gauravvishwakarma4796
    @gauravvishwakarma4796 2 года назад

    First comment 😁✌️

  • @kamleshchauhan6894
    @kamleshchauhan6894 2 года назад

    David please show us how to make trojans

  • @saudkader8488
    @saudkader8488 2 года назад

    Goeie Middag! @David Bombal van Kaapstad :) Just wanted to know what Cisco Routers and Switches you are currently using in your home and work/Professional. How can I access Cisco IOS'es (Routers+Switches including emulator to run it) as well as the Cisco IP communicator softphone. (I know about Packet Tracer, EveNG, GNS3, Viral)

  • @brianturney2124
    @brianturney2124 2 года назад

    He mentions Ansible Vault for encrypting passwords tho every tutorial I see online about how to setup the config files always shows people using clear text. and yaml not supporting tab.. wow

  • @dwaynemorgan2927
    @dwaynemorgan2927 2 года назад

    Can I start learning Ansible with VS code ?

  • @fsamobby
    @fsamobby 2 года назад

    ansible=python=love=)

  • @kermitdaphrogge525
    @kermitdaphrogge525 2 года назад +2

    Hey

  • @MelnSteveC
    @MelnSteveC Год назад

    Will there be a part 2?

  • @gauravvaswani2994
    @gauravvaswani2994 2 года назад

    First !!

  • @sethgaston8347
    @sethgaston8347 2 года назад

    So did Orson Scott Card also predict the rise of a Hegemon and a Hivequeen, hopefully that part isn't in my lifetime lol

  • @Nwo-jo3oe
    @Nwo-jo3oe 2 года назад

    First!

  • @Andrew-mh6cl
    @Andrew-mh6cl 2 года назад

    Hi sir iam 2nd

  • @1geodawg
    @1geodawg 2 года назад

    so ..... when is the next video on this? :-)

  • @DeepakSingh-wv5ii
    @DeepakSingh-wv5ii 2 года назад

    Hello sir

  • @zeratul09
    @zeratul09 2 года назад

    Who is this guy? We want Meow Meow!

  • @mohammadtorikulislam3981
    @mohammadtorikulislam3981 2 года назад

    First....

  • @Nwo-jo3oe
    @Nwo-jo3oe 2 года назад

    My python RUclips hacking script works!

  • @dvoltv
    @dvoltv 5 месяцев назад

    someone tell bro to look into the camera 😭

  • @jairunet
    @jairunet 2 года назад

    Thank you so much David again for the willingness to always help and educate your audience, but I have to be honest for a moment here, as soon as this guy started describing himself as expert on this, expert on that, SME, SME, I don't know you all, but his attitude reflected two red flags for me, 1) gleams personal insecurities 2) whatever he demonstrate here will end up disappointing you and on the long run disappoint himself as well... why would you put yourself in that position...total lack of humbleness, This is one of the very few videos posted by David in which I tried very hard not to stop watching it, especially around minute 34:10...

    • @afara2000
      @afara2000 2 года назад

      SME is common term in American companies who is referred to someone knowledgeable about a system more than others in that company. It's actually nice of him to spend time sharing his knowledge on someone else's YT channel for free. So don't take it personally.

    • @jairunet
      @jairunet 2 года назад

      @@afara2000 US citizen here, I can say I have been around experiencing those places IBM, AWS, Bloomberg, all similar, politics, bureaucracy, a lot of what some call impostors, this is the main reason why I admire David Bombal, Keith Barker, and one of my favorites this days Charles Judd, who I highly recommend to watch and hopefully one day David can also invite and interview in his channel. Regarding your comment of "appearing in a YT channel for free" Have you seen David, or Keith, or even myself (yes I do have a YT channel as well) asking for anyone to pay for their very valuable knowledge or time? just do the Math, who do you hear about the must around the network engineering community, David, Keith, Charles, etc. or this person, who seems desperately in need of scrambling himself in a simple basic Ansible demonstration video. There was absolutely no need to made it extra complicated showing the github integration or going with a commercial IDE like pycharm. In all honesty... no thanks, I think there are many other resources out there that will be honored to be in David's YT channel, resources that I have seen they already share and support the network engineering community for free! another fact regarding your "free comment" Have you heard about GNU/Linux, free software that took over the commercial server version of Microsoft and all other cloud infrastructures as standard, and! will also take over the network OS systems as well. That I guarantee it, and again GNU/Linux is free!

    • @ThePacketThrower
      @ThePacketThrower 2 года назад +1

      That's a shame, David and I have quite a few videos in the pipeline :)

    • @ThePacketThrower
      @ThePacketThrower 2 года назад

      @@afara2000 :)

  • @justinava1675
    @justinava1675 2 года назад

    Donald's not a very good teacher no offense. But he just assumes knowledge from learners rather than explaining causes more confusion than understanding by overwhelming with things. But thanks for the time