28 lines
676 B
Plaintext
28 lines
676 B
Plaintext
|
# Main NTP configuration
|
||
|
# {{ ansible_managed }}
|
||
|
|
||
|
driftfile /var/lib/ntp/ntp.drift
|
||
|
|
||
|
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
|
||
|
|
||
|
{% if 'remote' in group_names or 'remote-jellyfin' in group_names %}
|
||
|
server time.nrc.ca
|
||
|
server time.chu.nrc.ca
|
||
|
|
||
|
restrict -4 default kod notrap nomodify nopeer
|
||
|
restrict -6 default kod notrap nomodify nopeer
|
||
|
{% else %}
|
||
|
disable auth
|
||
|
multicastclient 224.0.0.1
|
||
|
multicastclient ff05::101
|
||
|
|
||
|
restrict -4 default notrap nomodify
|
||
|
restrict -6 default notrap nomodify
|
||
|
{% endif %}
|
||
|
restrict 127.0.0.1
|
||
|
restrict ::1
|