You've already forked ansible-netbox-inventory
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:
@@ -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"
|
||||
|
||||
Reference in New Issue
Block a user