freeradius: fix clients.conf (ipv4addr + ipv6addr)
This commit is contained in:
parent
3d6e0f21b6
commit
8937e4f8e8
1 changed files with 3 additions and 3 deletions
|
@ -2,10 +2,10 @@
|
||||||
|
|
||||||
{% for name, client in radiusd__clients.items() %}
|
{% for name, client in radiusd__clients.items() %}
|
||||||
client {{ name }} {
|
client {{ name }} {
|
||||||
{% if client.addr | ansible.utils.ipv6 %}
|
{% if client.addr | ansible.utils.ipv4 %}
|
||||||
ipaddrv6 = {{ client.addr | ansible.utils.ipv6("address") }}
|
ipv4addr = {{ client.addr | ansible.utils.ipv4("network") }}
|
||||||
{% else %}
|
{% else %}
|
||||||
ipaddr = {{ client.addr | ansible.utils.ipv4("address") }}
|
ipv6addr = {{ client.addr | ansible.utils.ipaddr("network") }}
|
||||||
{% endif %}
|
{% endif %}
|
||||||
netmask = {{ client.addr | ansible.utils.ipaddr("prefix") }}
|
netmask = {{ client.addr | ansible.utils.ipaddr("prefix") }}
|
||||||
proto = *
|
proto = *
|
||||||
|
|
Loading…
Reference in a new issue