Ansible – Config Generator – II

For the first part of this series, check this – 1st part of this series. — – hosts: local connection: local gather_facts: no   tasks:   – name: GET DATA     include_vars: ./host_vars/file.yml   – name: GENERATE CONFIG     template:       src: ./SVI.j2       dest: … “Ansible – Config Generator – II”

Read More

Ansible – Config Generator – I

Before proceeding, make sure to install “netaddr” as this is required for “ipaddr()” used in the Jinja2 configuration template. pip install netaddr aggr.yml is the playbook that will be utilized for generating L3 SVI configuration: — – hosts: local connection: local gather_facts: no tasks: – … “Ansible – Config Generator – I”

Read More