16 lines
356 B
YAML
16 lines
356 B
YAML
# 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+$', '') }}
|
|
|
|
|