{{ ansible_managed | comment }} {% for name, client in radiusd__clients.items() %} client {{ name }} { {% if client.addr | ansible.utils.ipv4 %} ipv4addr = {{ client.addr | ansible.utils.ipv4("network") }} {% else %} ipv6addr = {{ client.addr | ansible.utils.ipaddr("network") }} {% 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 %}