Replies: 1 comment
-
See netbox-community/ansible_modules#860 You should update your ansible version to 2.11+, downgrade to netbox collection 3.7.1, or wait for the next collection release where this should be fixed. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hi.,
I have a new setup of netbox on ubuntu.
ansible.cfg:
[inventory]
enable_plugins = host_list, auto, yaml, netbox.netbox.nb_inventory
netbox_inventory.yaml:
plugin: netbox.netbox.nb_inventory
api_endpoint: https://localhost/
token: 12345
ansible-inventory -vvv -llist -i netbox_inventory.yaml
fails with the error message:
[WARNING]: * Failed to parse /root/netbox_inventory.yaml with ansible_collections.netbox.netbox.plugins.inventory.nb_inventory plugin: 'InventoryModule' object has
no attribute '_vars'
File "/usr/lib/python3/dist-packages/ansible/inventory/manager.py", line 289, in parse_source
plugin.parse(self._inventory, self._loader, source, cache=cache)
File "/root/.ansible/collections/ansible_collections/netbox/netbox/plugins/inventory/nb_inventory.py", line 1953, in parse
self.templar.available_variables = self._vars
[WARNING]: Unable to parse /root/netbox_inventory.yaml as an inventory source
Any ideas?
Michael
Beta Was this translation helpful? Give feedback.
All reactions