CCNA v2.0, section 5.0, lesson 3, in slides: Ansible as an agentless tool on a control node, how it reaches a router with network_cli, installing it and its collections, the inventory with its groups and variables, playbooks made of plays, tasks and modules in YAML, the IOS modules (ios_command, ios_config, ios_facts), register and debug, a run task by task, the play recap, idempotence, check mode and diff mode, ad-hoc commands, and Ansible beside Terraform and a script.
The slides
The lesson is eighteen slides in five sections, after an introduction.
- Introduction: a control node, three routers, and the lesson's sections.
- 1. Ansible: the control node and the managed nodes, where a module runs, and installing Ansible and its collections.
- 2. Inventory and variables: hosts and groups,
group_vars, and the connection variables for a router. - 3. Playbooks: plays, tasks and modules, the YAML rules, the IOS modules, and
register with debug. - 4. Running a playbook: the run task by task, the play recap, idempotence, check mode and diff mode, and ad-hoc commands.
- 5. Compared: Ansible, Terraform and a script, and the lab's routers.
The buttons on the left and right edges move between slides. So do the arrow keys and a swipe.
The Ansible outputs on the slides are real runs of the lab's 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 lab
Related pages
Sources