You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: plugins/inventory/nb_inventory.py
+22Lines changed: 22 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -253,6 +253,28 @@
253
253
keyed_groups:
254
254
- prefix: status
255
255
key: status.value
256
+
257
+
# For use in Ansible Tower (AWX), please see this blog from RedHat: https://www.ansible.com/blog/using-an-inventory-plugin-from-a-collection-in-ansible-tower
258
+
# The credential for NetBox will need to expose NETBOX_API and NETBOX_TOKEN as environment variables.
259
+
# Example Ansible Tower credential Input Configuration:
260
+
261
+
fields:
262
+
- id: NETBOX_API
263
+
type: string
264
+
label: NetBox Host URL
265
+
- id: NETBOX_TOKEN
266
+
type: string
267
+
label: NetBox API Token
268
+
secret: true
269
+
required:
270
+
- NETBOX_API
271
+
- NETBOX_TOKEN
272
+
273
+
# Example Ansible Tower credential Injector Configuration:
0 commit comments