dhcpd: Advertise NTP servers on dna-gw hosts

This commit is contained in:
Timo Makinen 2025-06-24 12:38:19 +00:00
parent 4846e3a284
commit e1edd338aa

View file

@ -73,6 +73,10 @@ subnet {{ intnet | ansible.utils.ipaddr('network') }} netmask {{ intnet | ansibl
] | join(', ') ] | join(', ')
}}; }};
use-host-decl-names on; use-host-decl-names on;
option ntp-servers {% for host in groups['dnagw_' + intdomain.split('.')[0]] -%}
{{ hostvars[host]['network_interfaces'][0].ipaddr -}}
{{ ', ' if not loop.last -}}
{% endfor %};
{% if network_interfaces[0].vlan == 30 %} {% if network_interfaces[0].vlan == 30 %}
pool { pool {