What Is Ansible?
This section introduces the core components of Ansible, its operating model, and its role in automation and orchestration.
- The Ansible language, engine, and framework
- Common uses of Ansible
- Orchestration concepts
- Hands-on: Install Ansible and enable SSH on network devices
Ansible Architecture
Explore the standard Ansible architecture and understand how its approach is applied to network devices.
- How Ansible normally operates
- Agentless architecture
- SSH connectivity
- Ansible and Python
- Modules
- How Ansible works with network devices
- Configuration management
- Inventories
- Playbooks and modules
ansible.cfg- Hands-on: Get started with Ansible and run ad hoc commands
Playbooks
Learn the fundamental components required to create and execute Ansible playbooks.
- Using
ansible-playbook - Users
- YAML
- Plays and tasks
- Modules
ansible-vault- Hands-on: Run Ansible playbooks
Advanced Playbook Techniques
Build more flexible playbooks by working with variables, handlers, facts, and conditional execution.
- Handlers
- Variables
- Environment variables
- Playbook variables
- Inventory variables
- Variable scope and precedence
- Accessing variables
- Facts
- Ansible Vault
- Conditionals
- Using
wait_for - Hands-on: Work with variables and conditions in playbooks
Inventories
Learn how Ansible identifies, organises, and manages the network devices included in automation workflows.
/etc/ansible/hosts- Inventory variables
- Static inventories
- Dynamic inventories
- Hands-on: Work with inventories and variables
Ansible Network Modules
Explore built-in, custom, and vendor-specific modules that can be used to automate network devices.
- Built-in modules
- Custom modules
- Module return values
ansible-doc -lconnection: local- Cisco modules
- Juniper modules
- Hands-on: Use Ansible modules with network devices
Ansible Templating
Learn how Ansible and Jinja2 templates can be used to generate and apply network configurations.
- The template module
- The assemble module
- Jinja2 templates
for structuresif/else conditions- Hands-on: Configure network devices from templates
Roles and Includes
Explore ways to organise Ansible automation into modular and reusable components.
- Dynamic includes
- Handler includes
- Playbook includes
- Roles
- Role components: handlers, files, and templates
- Cross-platform roles
- Ansible Galaxy
- Hands-on: Work with includes and build roles
Ansible and NAPALM
The final section introduces the use of NAPALM modules within Ansible-based network automation workflows.
- NAPALM installation
napalm-ansiblenapalm_diff_yangnapalm_get_factsnapalm_install_confignapalm_parse_yangnapalm_pingnapalm_translate_yangnapalm_validate- Hands-on: Use NAPALM modules with Ansible