Sample Ansible-Based Network Automation Solutions
Articles » Ansible-Related Content » Sample Ansible-Based Network Automation Solutions
Most networking-focused Ansible examples or blog posts focus on basic proof-of-concept examples. We tried to collect more comprehensive solutions and articles that would help you become proficient in Ansible, and figure out how to best use Ansible in your first production-grade network automation solution:
ipSpace.net content
- Ansible-related blog posts
- Ansible, YAML and Jinja2 examples
- Simple Ansible-based solutions
- MPLS infrastructure and services solution
- VLAN provisioning example
- Ansible online course
- Building Network Automation Solutions online course
David Barroso
The best way to get better with any tool is to learn from the masters, and David (one of the most popular speakers in the Network Automation course is an open-source network automation legend. Not only is he one of the authors of NAPALM, napalm-validate, napalm-yang and Nornir, he’s also sharing a wide range of network-focused Ansible playbooks:
- Abstract All the Things
- Network Automation Tutorials
- Deploy a network fabric with Ansible - NANOG64 demo (video)
Khelil Sator
Khelil Sator is a Consulting Engineer working for Juniper Networks. You’ll find interesting Junos-related tricks in his Ansible playbooks (but also a few things that you can apply to any network, so explore them regardless of what platform you’re using).
- Junos Automation wih Chatops
- Ansible Training for Junos Automation
- Building IP fabric Junos configurations with Ansible/Jinja2
Bradley Thornton
- Creating Ansible playbook from the ground up
- Use Ansible to change the source of truth
- Add a dhcp helper address where helpers exist - a full-blown solution with roles and custom filters
- More Ansible- and network automation related blog posts
Other sources
- Awesome Network Automation - a long list of network automation tools, trainings, blogs, and other resources
- Sample playbooks using Ansible networking modules by Peter Sprygada
- Network Continuous Integration by Pete Lumbis
- Ansible Junos examples by Damien Garros
- Ansible on Cumulus Linux (see available demos section of Cumulus Linux Demo Framework for more examples)
Interesting Ansible topics and blog posts
- Ansible best practices
- Create your own Ansible/Jinja2 filter plugins
- Ansible lint (checks your playbook for dubious practices)
- Using Python debuggers with Ansible
- Ansible – Parsing CSV List Of Hosts
- Using multiple Ansible inventory files
- Building Docker network automation container