Nautobot
To create and manage device inventory via plugin, several steps are required. This guide covers the Nautobot plugin.
Related reading: Ansible Collection for Nautobot
Install the plugin
There is an ansible-galaxy command that can install the plugin into the IAG server. You will likely have to incorporate this command into your IAG build plan so that you do not have to do this as a manual step. For Nautobot the command looks like this:
Configure Ansible to use the plugin
There are several ways to accomplish this step. Below is a suggested method for enabling a plugin. Make sure the interpreter_python is appropriate for the environment.
This example enables the Nautobot dynamic inventory plugin at /etc/ansible/ansible.cfg.
Configure the host file
Use the Nautobot Ansible documentation to determine the most appropriate way to configure the plugin to connect to and query from the source of truth system. The Nautobot plugin configuration below connects to the public Nautobot demo and returns all devices found there.
/opt/automation-gateway/ansible/inventory/hosts