Files
ansible-netbox-inventory/config.yaml.example
Bryan Joshua Pedini c1f0b4f724 feat: ip_version option to restrict inventories to ipv4 or ipv6
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.
2026-08-25 14:53:24 +02:00

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"