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

Integrating Ansible with Nautobot

Andrea Dainese
July 11, 2024
Post cover

Integrating Ansible with Nautobot involves two main aspects:

  • Reading information from Nautobot using Ansible.
  • Running Ansible playbooks to update device configurations.

Let’s focus on the first point: to make Nautobot’s information available in Ansible, we need to use a dynamic inventoryNetwork to Code  provides a specific Ansible collection for Nautobot  that includes an inventory plugin. You can install this collection with:

ansible-galaxy collection install networktocode.nautobot

Before configuring the inventory, ensure the following information is completed in Nautobot for your device:

  • IP address for device access
  • Username and password for device access
  • Connection method used by Ansible to access the device
  • Device interfaces with associated profiles

Configure primary IP address

To configure the management IP address, follow these steps:

Create a network prefix: Navigate to IPAM -> Prefixes -> Add:

Continue reading the post on Patreon .