2022-04-10 15:26:44 +00:00
|
|
|
# {{ ansible_managed }}
|
|
|
|
|
2022-09-12 19:33:51 +00:00
|
|
|
{% if chrony_server | default([]) | length == 0 %}
|
2022-04-10 15:26:44 +00:00
|
|
|
pool {{ chrony_pool }}
|
2022-04-10 15:38:37 +00:00
|
|
|
{% endif %}
|
2022-09-12 19:33:51 +00:00
|
|
|
{% for server in chrony_server %}
|
|
|
|
server {{ item }}
|
|
|
|
{% endfor %}
|
2022-04-10 15:26:44 +00:00
|
|
|
|
2022-09-12 19:33:51 +00:00
|
|
|
sourcedir /run/chrony-dhcp
|
|
|
|
driftfile /var/lib/chrony/drift
|
|
|
|
makestep 1.0 3
|
|
|
|
rtcsync
|
2022-04-10 15:26:44 +00:00
|
|
|
{% if chrony_allow | length > 0 %}
|
2022-09-12 19:33:51 +00:00
|
|
|
|
2022-04-10 15:26:44 +00:00
|
|
|
{% for block in chrony_allow %}
|
|
|
|
allow {{ block }}
|
|
|
|
{% endfor %}
|
|
|
|
{% endif %}
|
|
|
|
|
2022-09-12 19:33:51 +00:00
|
|
|
keyfile /etc/chrony.keys
|
|
|
|
ntsdumpdir {{ chrony_ntsdumpdir }}
|
|
|
|
leapsectz right/UTC
|
2022-04-10 15:26:44 +00:00
|
|
|
|
2022-09-12 19:33:51 +00:00
|
|
|
logdir {{ chrony_logdir }}
|
|
|
|
log {{ chrony_log | join(" ") }}
|