The course focusses on the use of ansible for network devices instead of its usual server use case. The course progresses from the basics of ansible and playbooks onto using network specific modules including NAPALM. The use Jinja2 templating with ansible is also studied. Hands on sessions with ansible configuring routers and switches follow all major sections.
Network engineers.
2 days
The language, the engine, the framework. Uses of ansible, orchestration.
Hands on Installing ansible, enabling SSH on network devices.
How ansible “normally” works, Agentless, SSH, ansible and Python, modules, how ansible work on network devices, Configuration management, inventories, playbooks, modules, ansible.cfg.
Hands on Getting started, running ad hoc commands.
ansible-playbook, users, YAML, plays, tasks, modules. ansible-vault.
Hands on Running playbooks.
Handlers, variables, environmental variables, playbook variables, inventory variables, variable scope and precedence, accessing variables, facts, ansible vault. Conditionals, wait_for.
Hands on Using variables and conditions in playbooks.
/etc/ansible/hosts, inventory variables, static inventories, dynamic inventories.
Hands on Inventories and variables.
Built in modules, custom modules, return values. ansible-doc –l. connection: local, Cisco modules, Juniper module,
Hands on Using modules for your network devices.
The template module, the assemble module, jinja2 templates, for, if else.
Hands on Configuring network devices from templates.
Dynamic includes, Handler includes, playbook includes. Roles, role parts: handlers, files, templates, cross platform roles, ansible galaxy.
Hands on includes example, building roles.
Installation, napalm-ansible, NAPALM modules: napalm_diff-yang, napalm_get_facts, napalm_install_config, napalm_parse_yang, napalm_ping, napalm_translate_yang, napalm_validate.
Hands on Using NAPALM modules in ansible.
"Hard concepts were explained very simply"
"Excellent presentation - very good course structure."
This structured course uses Instructor Led Training to provide the best possible learning experience. Small class sizes ensure students benefit from our engaging and interactive style of teaching with delegates encouraged to ask questions throughout the course. Quizzes follow each major section allowing checking of learning.