CCNA v2.0, section 5.0, lab 3, in slides: start three IOS routers in Cisco Modeling Labs Free, install Ansible, write the inventory and test it with an ad-hoc command, run a playbook that executes show commands and prints their output, read the routers' facts, preview a configuration playbook in check mode, apply it, run it again to see nothing change, and see a diff; then break the run in five ways (a wrong password, a wrong network OS, an indentation error, a misspelled module, an address nothing answers at) and read each error.
The slides
The lab is twenty-two slides in four parts, after an introduction, one step each.
- Introduction: what the lab does, what it needs, and why it does not run in Packet Tracer.
- 1. Setting up: three routers reachable over SSH, Ansible installed, the lab's files, the inventory, and an ad-hoc command.
- 2. Running commands:
show.yml read and run, and the routers' facts. - 3. Changing the configuration:
config.yml read, previewed in check mode, applied, run again, changed with a diff, and checked on the routers. - 4. Fault round: a wrong password, a wrong network OS, an indentation error, a misspelled module, and an address nothing answers at.
The files
- The lab's files:
ansible.cfg, the inventory, the group's variables, the two playbooks and the lines each router needs, in the
ccna repository. - The routers: three IOS routers you reach over SSH, not Packet Tracer's; the first step says where to get them at no cost.
- The outputs on the slides are real runs of these files (ansible-core 2.21.6,
cisco.ios 11.6.0), against stand-in routers that answer like IOS; the routers' own lines in them are written. - The lesson:
Configuration Management with Ansible.