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.
This commit is contained in:
2026-08-25 14:53:24 +02:00
parent 9dbcdfad66
commit c1f0b4f724
3 changed files with 87 additions and 12 deletions

View File

@@ -13,3 +13,5 @@ inventory:
# optional filter, see README.md for the full list
filter: ""
filter_value: ""
# restrict to one IP family: both | v4 | v6
ip_version: "both"