Ansible Config As Code With Network Backups To Git And Point-In-Time Rollback

Опубликовано: 14 Октябрь 2024
на канале: Greg Sowell
850
18

Blog post here with files and full writeup: https://gregsowell.com/?p=7459

This demo utilizes config as code. This means that the configuration for my network kit is stored in my git repository in standard CLI format. When I invoke ansible to configure the equipment it will first do a backup, then it will clone the configuration repo and update the devices. If, for any reason, I want to rollback the configuration on all or any of the devices in that change window, all I have to do is specify a backup tag, and the automation will grab the correct snapshot from git and perform the restore.