2022-08-31 01:46:11 +02:00
|
|
|
{{ ansible_managed | comment }}
|
|
|
|
|
|
|
|
{% for name, client in radiusd__clients.items() %}
|
|
|
|
client {{ name }} {
|
2022-08-31 04:47:23 +02:00
|
|
|
{% if client.addr | ansible.utils.ipv4 %}
|
|
|
|
ipv4addr = {{ client.addr | ansible.utils.ipv4("network") }}
|
2022-08-31 01:46:11 +02:00
|
|
|
{% else %}
|
2022-08-31 04:47:23 +02:00
|
|
|
ipv6addr = {{ client.addr | ansible.utils.ipaddr("network") }}
|
2022-08-31 01:46:11 +02:00
|
|
|
{% endif %}
|
|
|
|
netmask = {{ client.addr | ansible.utils.ipaddr("prefix") }}
|
|
|
|
proto = *
|
|
|
|
require_message_authenticator = yes
|
|
|
|
nastype = other
|
|
|
|
secret = {{ client.secret }}
|
|
|
|
{% if client.virtual_server is defined %}
|
|
|
|
virtual_server = {{ client.virtual_server }}
|
|
|
|
{% endif %}
|
|
|
|
}
|
|
|
|
|
|
|
|
{% endfor %}
|