dhcpd: Advertise NTP servers on dna-gw hosts
This commit is contained in:
parent
4846e3a284
commit
e1edd338aa
1 changed files with 4 additions and 0 deletions
|
@ -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 {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue