Better Ansible Network Automation with Roles and Custom Modules

Sdílet
Vložit
  • čas přidán 9. 09. 2024
  • Season 2, Talk 7 of NetDevOps Live! explores how you can build your own custom Ansible modules and roles. Full details at bit.ly/2Vw9Jii
    Presenter: John McDonough / johnamcdonough
    Topics Covered - Time Links
    - Agenda 1:51
    - What does "Ansible" mean? 3:06
    - Roles vs Modules 3:30
    - Let's Make a Module! 5:06
    - Demo: Setting up Python 6:31
    - Sections of a Module 9:33
    - Demo: Module Code Walkthrough 11:32
    - Running the template module 22:20
    - Creating an ACI Module 25:54
    - Testing the ACI Module 31:13
    - A "Better" module with "utils" 33:52
    - A bit on pylint 35:19
    - Demo 36:09
    - Using your module in playbook 37:48
    - Ansible Vault 39:58
    - Running the playbook 42:41
    - Verifying Changes in APIC 44:32
    - Module Review 45:17
    - Let's Make a Role! 45:49
    - Demo: Role Initialization 48:55
    - Role Tasks and Vars 49:36
    - Demo 50:11
    - Running playbook 52:57
    - Verifying in APIC 53:41
    - Role Review 54:55
    - Sharing roles on Galaxy 55:39
    - Role Best Practices 56:29
    - Summing Up 57:49
    - Webinar Resources 58:24
    - Code Exchange Challenge 59:19
    - Contact Info 1:00:18
    - Closing Thoughts 1:00:41
    Episode Description:
    Ansible is an amazing open source tool for getting started with network configuraiton management. Have you ever noticed how big an complicated your playbooks can get for even basic network configurations? Or have you found something you wanted or needed to do that wasn't included in a module? Or, gasp, a module that didn't quite work as expected?
    In this session we will see how you can peel back the covers on Ansible and explore Roles and even look at the underlying Python code to see how you can make it more better.
    NetDevOps Live! is produced by Cisco DevNet. Details can be found at developer.cisc... and follow NetDevOps Live! on Twitter at / netdevopslive

Komentáře • 6

  • @miscelaneousVideos
    @miscelaneousVideos Před 4 lety +1

    Love this live session please do more :)

  • @ezhilarasipalani6541
    @ezhilarasipalani6541 Před 5 lety +1

    Amazing!!! Thank you so much

  • @aliakbarhemmati31
    @aliakbarhemmati31 Před 5 lety +1

    Thanks

  • @paulzapodeanu9407
    @paulzapodeanu9407 Před 2 lety +1

    What's the point of using Ansible to configure ACI? Ansible is an automation engine, usefull when there are many devices to configure, but with ACI, you only have to configure the APIC, and that pushes the whole config to the switches. Why not use plain python?

  • @ManojSingh-lg8bn
    @ManojSingh-lg8bn Před 3 lety

    Hi, have any module in ansible to upgrade 5 thousand
    switch firmware