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
.