![]() labs/ " operation: delete when: is defined Lab workflow DMVPN LAB CCNP MANUALname: CCNP ENARSI Lab Manual Switches hosts: switches #switches gather_facts: False strategy: free vars_files: That: lab is defined fail_msg: "no lab defined, please add extra vars defining lab variable " # Example ansible-playbook deploy.yaml -e lab=01_2.1.2 name: Check that lab is defined assert: name: Checking for valid lab definition hosts: localhost gather_facts: False tasks: When the user passes in the lab variable, Ansible will load the correct variable files to configure or destroy the nodes. This is where the individual lab folder comes in. There is a simple assert at the beginning to make sure the user passes in a lab variable. Its just calling out certain roles that will take care of the configuration. The interface that is attached to the MGMT VRF is not defined in these files for safety, if they are not included, then there is no chance the playbook or user may inadvertently reset the interface. Items defined in destroy will be removed from the devices after the user is done working through a lab. The deploy playbook will handle configuring the interfaces, setting static routes, routing, banners, tunnel, loopback interfaces, and more. # From labs/14_16.1.2/RTR3.yaml hostname: RTR3 interfaces: ![]() Below is a sample of the commands used on a Cisco device. Create MGMT VRF, assign management port to management VRF, and enable ssh. Once the nodes have all of their connections. Topology links would have to match or many updates would be required in vars files. Please note, this topology can be created using GNS3 or CML. Once that is done make sure each node has a connection to the same network as your Ansible control machine (light gray connections in the topology above). I also included the export under the eve_topology folder. Getting started Images Usedįeel free to copy the topology I created above. Maybe I'll add some troubleshooting labs later on if this gets popular :). One more note, I did not use any official Cisco Network Academy training so I do not have access to the troubleshooting labs in the book. This is only a complimentary tool, not a replacement. It is still required to go through the labs. Side note, this repository is not a replacement for the lab manual. Once the user completes the lab, there is also a destroy playbook to reset the lab. Long story short, and this will be a long story! This repo will help build the initial configurations for each device before starting a lab. ![]() The goal of this repo is to help me or anyone out there working through the lab manual. ![]() That is how this little project started, and my curiosity with messing with the new Cisco IOS collection. Hello Internet! While working through the CCNP ENARSI Lab Manual, I got pretty tired of having to reset the lab and reconfigure basic IP configurations on each device. CCNP ENARSI Lab Manual v8 Ansible Configuration ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |