Integrating Ansible with Nautobot
文章介绍了将Ansible与Nautobot集成的方法,重点在于通过动态库存插件读取Nautobot设备信息,并配置管理IP地址等参数以实现自动化管理。 2025-9-20 19:3:36 Author: www.adainese.it(查看原文) 阅读量:17 收藏

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 .


文章来源: https://www.adainese.it/blog/2024/07/11/integrating-ansible-with-nautobot/
如有侵权请联系:admin#unsafe.sh