Replies: 1 comment 3 replies
-
did you install inside a python virtual environment? is it activated? maybe this guide is useful (see use case 3) |
Beta Was this translation helpful? Give feedback.
3 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I am trying to setup Redhat ansible automation platform with netbox, but when I try a basic playbook to test functionality:
hosts: localhost
gather_facts: no
tasks:
query a list of devices
debug:
msg: >
"Device {{ item.value.display_name }} (ID: {{ item.key }}) was
manufactured by {{ item.value.device_type.manufacturer.name }}"
loop: "{{ query('netbox.netbox.nb_lookup', 'devices',
api_endpoint='https://removed/',
token='removed') }}"
I keep getting the following error:
PLAY [Playbook to interact with NetBox] ****************************************07:35:16
TASK [Obtain list of devices from NetBox] **************************************07:35:16
fatal: [localhost]: FAILED! => {"msg": "lookup plugin (netbox.netbox.nb_lookup) not found"}
PLAY RECAP *********************************************************************07:35:16
localhost : ok=0 changed=0 unreachable=0 failed=1 skipped=0 rescued=0 ignored=0
All paths are correctly referenced, netbox.netbox is installed with the required python modules.
Has anyone come across this issue before? You assistance will be of great help. Thank you!
Beta Was this translation helpful? Give feedback.
All reactions