Categories

Category cover

Automation
155 posts

Category cover

Learning paths
119 posts

Category cover

CISO
22 posts

Category cover

Security
20 posts

Category cover

Notes
19 posts

Category cover

Personal Security
18 posts

Category cover

Infrastructure
12 posts

Category cover

OT/ICS
5 posts

Category cover

Books
3 posts

Category cover

UNetLab
3 posts

Category cover

Write-up
3 posts

Category cover

OSInt
2 posts

Category cover

My life
1 posts

The Ansible role breakdown

Andrea Dainese
July 12, 2024
Post cover

Now, we need to translate the interface roles defined in Nautobot into specific configurations for the switches. To achieve this, we will create an Ansible role that utilizes the inventory described in the previous post to configure the interfaces of each device.

Fetch Running Configuration

First, we retrieve the current running configuration from the switch:

Optimizing show running-config improves overall performance.

Create data structures

Next, we generate data structures with necessary details from Nautobot:

Continue reading the post on Patreon .