Netbox - Ansible connection with API Token #14342
Replies: 3 comments 3 replies
-
I'm not using ansible with netbox currently, but here's the config I used to use a year or two back: ansible.cfg
netbox.yaml
I notice in your output
but then it moves onto a different inventory type. This suggests to me that the URL you've given is broken. Have you tried it with |
Beta Was this translation helpful? Give feedback.
-
I must go now, keep you updated about my progress. |
Beta Was this translation helpful? Give feedback.
-
I tested with ubuntu 22.04 and also did not work as expected, see netbox-community/ansible_modules#1124 for additional information. I'll close this issue and proceed with issue 1124. |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
I got at home on a new temp NUC EXSI server with Netbox VM successfully installed and on Debian 12 Ansible with the following modules:
$ ansible-galaxy collection list
Collection Version
community.vmware 4.0.0
netbox.netbox 3.15.0
/usr/lib/python3/dist-packages/ansible_collections
Collection Version
community.hashi_vault 4.1.0
community.vmware 3.4.0
netbox.netbox 3.11.0
Followed the instructions on 'https://netboxlabs.com/blog/getting-started-with-network-automation-netbox-ansible/' but I am unable to make it work.
Content netbox_inventory.yml:
[defaults]
collections_paths = ./collections
host_key_checking = false
inventory = ./inventory/netbox_inventory.yml
timeout = 120
[inventory]
cache = false
[inventory_plugins]
use_extra_vars = false
Beta Was this translation helpful? Give feedback.
All reactions