first commit
This commit is contained in:
15
files/inventory/netbox.yml
Normal file
15
files/inventory/netbox.yml
Normal file
@@ -0,0 +1,15 @@
|
||||
# inventory/netbox.yml
|
||||
plugin: netbox.netbox.nb_inventory
|
||||
|
||||
api_endpoint: "http://netbox.gt-tiso.ikeja.co.za" # <-- no trailing /api here
|
||||
token: "7648e4f5ee370cda7834682e61b47c2ee8e95623"
|
||||
|
||||
query_filters:
|
||||
- status: active
|
||||
- has_primary_ip: True
|
||||
|
||||
compose:
|
||||
ansible_host: >-
|
||||
{{ (primary_ip4.address | default('')) | regex_replace('/\\d+$', '') }}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user