mg
e37d354f2c
ntp-rolle in archiv syntax when richtig typo on+off playbook Doku vars doku server doku firewall server an client aktualisiert playbook server playbook base mit ausnahme server in inventory ntp_server ohne server geht rollen angelegt Co-authored-by: Michael Grote <michael.grote@posteo.de> Reviewed-on: mg/ansible#28 Co-Authored-By: mg <mg@noreply.git.mgrote.net> Co-Committed-By: mg <mg@noreply.git.mgrote.net>
32 lines
831 B
Django/Jinja
32 lines
831 B
Django/Jinja
{{ file_header | default () }}
|
||
# servers
|
||
{% for item in ntp_chrony_servers %}
|
||
server {{ item.address }} {{ item.options |default() }}
|
||
{% endfor %}
|
||
|
||
# keys
|
||
keyfile /etc/chrony/chrony.keys
|
||
|
||
# driftfile
|
||
driftfile {{ ntp_chrony_driftfile_directory }}/chrony.drift
|
||
|
||
|
||
{% if ntp_chrony_logging is sameas true %}
|
||
# Logging
|
||
log tracking measurements statistics
|
||
logdir /var/log/chrony
|
||
{% endif %}
|
||
|
||
# Stop bad estimates upsetting machine clock.
|
||
maxupdateskew 100.0
|
||
|
||
# This directive enables kernel synchronisation (every 11 minutes) of the
|
||
# real-time clock. Note that it can’t be used along with the 'rtcfile' directive.
|
||
rtcsync
|
||
|
||
# Step the system clock instead of slewing it if the adjustment is larger than
|
||
# one second, but only in the first three clock updates.
|
||
makestep 1 3
|
||
|
||
# chrony as ntp server
|
||
allow {{ ntp_chrony_subnet_allow }}
|