Skip navigation
Ansible Networking, You're doing it wrong.
0:00 / 1:12

Ansible Networking, You're doing it wrong.

Sean Cavanaugh | CCIE #40514

@IPvSean2.7K followers

Visit on X
452 likesDownloadOriginal post

54,568 views

Ansible Networking, You're doing it wrong. Boost your network playbook efficiency in under a minute: 🎛️ Leverage ansible_network_os for seamless portability. 📁 Switch tasks based on file names, no more conditionals! 🚫 Handle unsupported OS gracefully with with_first_found.

11 Comments

Comments from the original post on X (Twitter)

  • Cisco Nerd's profile picture

    @OnijeC

    I find this content very helpful. Do you have a YouTube channel, if yes please share the link with me. Thank you 🙏

    9 likes

  • Sean Cavanaugh | CCIE #40514's profile picture

    @IPvSean

    ❤️

    15 likes

  • Moeeed's profile picture

    @inFamousRaiden0

    Hi Sean, do you have an Ansible wizardry course ? I want to get started.

    1 like

  • Sean Cavanaugh | CCIE #40514's profile picture

    @IPvSean

    We have some free interactive labs online then we also have a free introductory class DO007 You can also follow my team on Youtube:

    1 like

  • CyberZeus✪ 🇺🇸 🇳🇬's profile picture

    @Cyberhalogen

    This is a game changer!!!! I love this

    1 like

  • PacketSwag's profile picture

    @PacketSwag

    Awesome stuff. Thanks.

    1 like

  • Petr Ankudinov's profile picture

    @loopback1

    I know, it's just an example, but using "eos_vlans" is usually fundamentally wrong. Apart from some rare cases, use "eos_config" and "arista.avd".

    1 like

  • monkey D's profile picture

    @MonkeyDm32

    I prefer to use the paramiko library 🙃🙃

  • marcompile's profile picture

    @marcompile

    How convenient :)

  • Joseph's profile picture

    @JosephKanz22

    Hi, I'm a little lost when it comes to the "item" variable in the include_tasks. Is that being used to point to each device or another playbook?

  • Sean Cavanaugh | CCIE #40514's profile picture

    @IPvSean

    item will return to anything in the loop, so in this case it will be your ansible_network_os.yml and if that doesn’t exist then it goes to unsupported.yml which is just a debug statement. It’s a programmatic way to avoid multiple conditionals.

    1 like