MENU

Fun & Interesting

Network Automation with Cisco Modeling Labs - Part 2, show commands

Stay Fresh - Network Bytes 515 lượt xem 3 months ago
Video Not Working? Fix It Now

You don't need the CLI to run show commands. Yea, I said it.

We're going to go through the full process of getting your first playbook setup to run "show commands". We'll setup a basic inventory, ansible.cfg, and then build a playbook. I'll show you how to use ansible-doc as a readme to get sample configurations.

Once we run our playbook, we'll cover how to display output and then how to handle differences in our network operating systems. We'll see why using the right module and learning conditionals helps create better playbooks.

Title: 00:00
Intro: 00:06
Connecting to our Ubuntu host: 02:42
Playbook Directory Setup: 04:14
Inventory Setup: 05:28
Ansible.cfg setup: 12:07
Building a playbook: 16:15
Using ansible-doc: 17:29
Running a playbook: 20:36
Displaying Output with -v or -vvv: 21:10
Register a variable: 23:17
IOS isn't NXOS and vice versa: 27:00
Conditionals: 30:28

Lab YAML for import (requires CML 2.8). This provides the topology in the video:

https://drive.google.com/drive/folders/1LyervRD-vqZdUe9xlEOgXt_Mi9frAKr0?usp=drive_link

Comment