mirror of
https://github.com/khuedoan/homelab.git
synced 2025-01-25 02:16:08 +07:00
10 lines
404 B
YAML
10 lines
404 B
YAML
|
metallb_namespace: metallb-system
|
||
|
metallb_subnet_cidr_prefix: 27 # /27
|
||
|
metallb_subnet_index: -1 # last subnet
|
||
|
metallb_addresses: | # Use the last subnet with the specified size from the network
|
||
|
{{
|
||
|
(ansible_default_ipv4.network + '/' + ansible_default_ipv4.netmask)
|
||
|
| ansible.netcommon.ipaddr('net')
|
||
|
| ansible.netcommon.ipsubnet(metallb_subnet_cidr_prefix, metallb_subnet_index)
|
||
|
}}
|