I am trying to understand the syntax to make a playbook to backup NX-OS devices.
I am reading the following link:
However, I am not connecting the dots - does anyone have a simple playbook that backups up NX-OS config to a remote Linux server, so I can learn how to use Ansible. I am not looking for a direct copy and paste script, since I want to learn, just need some direction so I can build my Lego blocks onto.
here is couple of pointers to start with :
Thank you for the links. It does make sense; however, do you know if you can just change the 'git' repo with just a directory path of the ansible server? ++laugh++ I know nothing of git.
the scripts are easy to understand and deployed nicely.
if you have Linux server - ubunut or debian
Login as root
#apt-get install git <-- press Y, to install git here.
make directory (on Linux, Hope you know this i guess).
if you dont know below command :
example to get git code to my backup directory
git clone firstname.lastname@example.org:ciscops/ansible-network-backup.git network-backup
once it cloned read the .yml file and understand, before executing any commands.
I know you have mentioned you want to learn and do it, make a simulated lab for testing purpose.
I started here :