27 lines
772 B
Plaintext
27 lines
772 B
Plaintext
|
### {{ ansible_managed }}
|
||
|
|
||
|
# /etc/ntp.conf, configuration for ntpd; see ntp.conf(5) for help
|
||
|
|
||
|
driftfile /var/lib/ntp/ntp.drift
|
||
|
|
||
|
# Enable statistics
|
||
|
statsdir /var/log/ntpstats/
|
||
|
statistics loopstats peerstats clockstats
|
||
|
filegen loopstats file loopstats type day enable
|
||
|
filegen peerstats file peerstats type day enable
|
||
|
filegen clockstats file clockstats type day enable
|
||
|
|
||
|
# NTP server pool
|
||
|
{% for server in timesync_servers %}server {{ server }} iburst
|
||
|
{% endfor %}
|
||
|
|
||
|
|
||
|
# Access control configuration
|
||
|
# By default, exchange time with everybody, but don't allow configuration.
|
||
|
restrict -4 default kod notrap nomodify nopeer noquery
|
||
|
restrict -6 default kod notrap nomodify nopeer noquery
|
||
|
# Local users may interrogate the ntp server more closely.
|
||
|
restrict 127.0.0.1
|
||
|
restrict ::1
|
||
|
|