This repository is deprecated; please follow the main search page or use the ‘Related code repos’ widget on the right side of the current page.

published

NetDevOps Live! Better Ansible Network Automation with Roles and Custom Modules

Ansible is an amazing open source tool for getting started with network configuration management. Have you ever noticed how big and 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?

The code in this repository is explained in NetDevOps Live! season 2 episode 7.

At NetDevOps Live!, you can find a recording of this episode as well as all the other episodes from all the seasons of NetDevOps Live!

Resources

Learning Labs:
Introduction to Ansible

DevNet Sandboxes:
ACI Always-On

Code Samples:
Ansible on DevNet’s Code Exchange

For guided learning of Ansible and Ansible with ACI, these DevNet Learning Lab Modules are recommended:

Technology stack: These code examples can be run using the DevNet Always-On ACI Sandbox.

Dependencies

The code in this repository was tested and run with the following software versions

  • python 3.7.3
  • ansible 2.7.10
  • pylint 2.3.1
  • requests 2.21.0

Configuration

The code examples use credentials for the DevNet Always-On ACI Sandbox. Change them for your environment.

aci1.yml has been encrypted with ansible-vault. The key for the aci1.yml file is ciscopsdt.


View code on GitHub
  • Owner

  • Contributors

    +2Github contributors
  • Categories

  • Products

    ACI
  • Programming Languages

    Python
  • License

    MIT License

Code Exchange Community

Get help, share code, and collaborate with other developers in the Code Exchange community.View Community
Disclaimer:
Cisco provides Code Exchange for convenience and informational purposes only, with no support of any kind. This page contains information and links from third-party websites that are governed by their own separate terms. Reference to a project or contributor on this page does not imply any affiliation with or endorsement by Cisco.