28 lines
802 B
Text
28 lines
802 B
Text
|
# {{ ansible_managed }}
|
||
|
|
||
|
# Specify one or more NTP servers.
|
||
|
# Use public servers from the pool.ntp.org project.
|
||
|
# Please consider joining the pool (http://www.pool.ntp.org/join.html).
|
||
|
{% for server in ntp_servers %}
|
||
|
server {{ server }}
|
||
|
{% endfor %}
|
||
|
|
||
|
# Record the rate at which the system clock gains/losses time.
|
||
|
driftfile /var/lib/chrony/drift
|
||
|
|
||
|
{% if ntp_tinker_panic is sameas true %}
|
||
|
# Force time sync if the drift exceeds the threshold specified
|
||
|
# Usefull for VMs that can be paused and much later resumed.
|
||
|
makestep 1.0 -1
|
||
|
{% else %}
|
||
|
# Allow the system clock to be stepped in the first three updates
|
||
|
# if its offset is larger than 1 second.
|
||
|
makestep 1.0 3
|
||
|
{% endif %}
|
||
|
|
||
|
# Enable kernel synchronization of the real-time clock (RTC).
|
||
|
rtcsync
|
||
|
|
||
|
# Specify directory for log files.
|
||
|
logdir /var/log/chrony
|