25 lines
636 B
Django/Jinja
25 lines
636 B
Django/Jinja
# {{ ansible_managed }}
|
|
{% for iface in radvd_interfaces | default([]) %}
|
|
interface {{ iface.name }} {
|
|
AdvSendAdvert on;
|
|
MinRtrAdvInterval 5;
|
|
MaxRtrAdvInterval 15;
|
|
route ::/0 {};
|
|
AdvManagedFlag off;
|
|
AdvOtherConfigFlag off;
|
|
prefix {{ iface.prefix }} {
|
|
AdvOnLink on;
|
|
AdvAutonomous on;
|
|
AdvRouterAddr on;
|
|
};
|
|
{% if iface.source is defined %}
|
|
AdvRASrcAddress {
|
|
{{ iface.source }};
|
|
};
|
|
{% endif %}
|
|
RDNSS {{ iface.dns | default(['2a00:1398::1', '2a00:1398::2']) | join(' ') }} {
|
|
AdvRDNSSLifetime {{ iface.dns_lifetime | default(3600) }};
|
|
};
|
|
};
|
|
{% endfor %}
|