blob: 3bfb4e401e28c43fcded9bce8fcf9b0754a99f9e (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
|
{% if chrony_mode == 'server' %}
local stratum 1
allow
{% elif chrony_mode == 'client' %}
{% for tserver in chrony.servers %}
server {{ tserver }} iburst
{% endfor %}
{% if chrony.slewclock == false %}
{# Step the time by default #}
makestep {{ chrony.makestep }}
{% else %}
{# Slew the clock but step at boot time if time error larger than 30 seconds #}
initstepslew {{ chrony.initstepslew }}{% for tserver in chrony.servers %} {{ tserver }}{% endfor %}
{% endif %}
{% if timesync.servers is not defined %}
maxjitter {{ chrony.maxjitter }}
{% endif %}
{% endif %}
driftfile {{ chrony['conf'][ansible_os_family]['driftfile'] }}
rtcsync
logdir /var/log/chrony
|