First delivered at the Ansible London Meetup
Does not work for NXOS but could easily be adjusted to hit NXOS or ASA by changing modules in use
Watch the video to see me walk you through these playbooks. https://youtu.be/MSp0eTDPDQE
https://learn-network-automation.teachable.com/p/ansible-for-network-engineers
Clone the repo to your machine
Change the hosts to addresses of your devices
play1.yml
will just backup your devicesplay2.yml
will backup the devices in a date specific format and folderplay3.yml
will backup devices
To create Cisco configurations edit /templates/roles/routers/templates/router.j2
You can have your entire cisco configuration in here just add an {{item.xxx}}
wherever you want a device specific variable.
Then add the variables in the /templates/roles/routers/vars/main.yml
Ensure your inventory hostnames match the hostnames in the vars file
Any questions just email roger at rogerperkin.co.uk or visit https://www.rogerperkin.co.uk and send me a message
Enjoy!
Roger CCIE #50038