19 lines
372 B
Django/Jinja
19 lines
372 B
Django/Jinja
# {{ ansible_managed }}
|
|
|
|
[Match]
|
|
Name={{ vpn_media.interface }}
|
|
|
|
[Network]
|
|
Address={{ vpn_media.ip }}/{{ vpn_media.prefix }}
|
|
DNS={{ vpn_media.dns }}
|
|
Domains={{ vpn_media.domains | join(' ') }}
|
|
|
|
{% for peer in vpn_media.peers %}
|
|
{% for ip in peer.allowed_ips %}
|
|
{% if ip.create_route %}
|
|
[Route]
|
|
Destination={{ ip.address }}
|
|
Scope=link
|
|
{% endif %}
|
|
{% endfor %}
|
|
{% endfor %}
|