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() %}
|
||||
client {{ name }} {
|
||||
{% if client.addr | ansible.utils.ipv6 %}
|
||||
ipaddrv6 = {{ client.addr | ansible.utils.ipv6("address") }}
|
||||
{% if client.addr | ansible.utils.ipv4 %}
|
||||
ipv4addr = {{ client.addr | ansible.utils.ipv4("network") }}
|
||||
{% else %}
|
||||
ipaddr = {{ client.addr | ansible.utils.ipv4("address") }}
|
||||
ipv6addr = {{ client.addr | ansible.utils.ipaddr("network") }}
|
||||
{% endif %}
|
||||
netmask = {{ client.addr | ansible.utils.ipaddr("prefix") }}
|
||||
proto = *
|
||||
|
|
Loading…
Reference in a new issue