AACC – Spring 2023 – CTS-233-400 – DEVASC 200-901: Lab 7.4.7 Supplemental Ansible & Python Device Backup Automation Deep Dive

In this supplemental video tutorial for Lab 7.4.7 on Ansible, we take a deep dive look at network automation using Ansible and we even circle back to our Python Cisco device backup script and see how we can leverage a #python list, filled with dictionaries representing each device, to back up multiple Cisco devices concurrently! On the Ansible side we learn about the ‘lookup’ function and its related ‘pipe’ command (used to run BASH shell commands) to generate a globally unique naming convention for our backup files, we then back up physical Cisco switches, we learn how to create device groups in the Ansible inventory file and reference them in the Ansible playbook, we learn how to deal with the need to elevate a user’s privilege from USER EXEC to PRIV EXEC and then finally we go deep into the different use cases between using ‘connection: local’ and the ‘network_cli’ option learning how ‘connection: local’ is great for use cases where the user account logging in already has PRIV EXEC status and what happens when we need to elevate privileges inside our Ansible playbook! Enjoy!

*These videos are being made for my AACC Spring 2023 CTS-233-400 learners to provide additional support for their learning journey.* #pythonforbeginners #pythonprogramming #pythontutorial #ansibletutorial #ansibletraining #ansible