In this Ansible Jinja2 Template Tutorial I will be demonstrating how to use Ansible to generate network configurations from templates for Cisco routers.
Check out all my network automation courses
[ Ссылка ]
If you haven't yet installed Ansible - please refer to this video [ Ссылка ]
This example is using Ansible installed on Ubuntu and takes a very simple 3 router template configuring hostname, loopback address and an enable secret password.
It will demonstrate how using ansible for configuration management of network devices is very simple with Jinja 2 and YAML.
Creating the Ansible Playbooks that will tie together a base config built with variables defined in a separate Jinja file
This Cisco router configuration tutorial only uses 3 routers but it demonstrates the power of Ansible for Network Engineers and how it can scale to provide configurations for thousands of devices.
In a later video I will describe once the network configuration has been built, how to push that to the device.
If you haven't installed Ansible yet:
How to Install Ansible on Ubuntu - [ Ссылка ]
Roger Perkin is CCIE #50038 and works for a Cisco Gold Partner in the UK.
For more tutorials and to find out more about Roger visit [ Ссылка ]
The files used in this tutorial can be found on my GitHub here:
[ Ссылка ]
This video was inspired by a 3 part Blog Series from Kirk Byers which can be found at:
[ Ссылка ]
Other Links:
Ansible: [ Ссылка ]
Jinja2: [ Ссылка ]...
YAML: [ Ссылка ]
#jinja2 #ansible #networkautomation
![](https://i.ytimg.com/vi/p0C90zIbe5s/maxresdefault.jpg)