You've already forked ansible-netbox-inventory
inventory.ip_version (or NETBOX_INVENTORY_IP_VERSION): both (default), v4 or v6; the ip-addresses source filters by family server-side, the virtual-machines source picks primary_ip4/primary_ip6 for ansible_host.
18 lines
469 B
Plaintext
18 lines
469 B
Plaintext
# SPDX-License-Identifier: GPL-2.0-or-later
|
|
# Copyright (C) 2026 Bryan Joshua Pedini
|
|
|
|
netbox:
|
|
url: "https://netbox.example.com"
|
|
token: "0123456789abcdef0123456789abcdef01234567"
|
|
verify_ssl: true
|
|
timeout: 30
|
|
|
|
inventory:
|
|
# where to get the hosts from: ip-addresses | virtual-machines
|
|
source: "ip-addresses"
|
|
# optional filter, see README.md for the full list
|
|
filter: ""
|
|
filter_value: ""
|
|
# restrict to one IP family: both | v4 | v6
|
|
ip_version: "both"
|