2023-11-28 03:05:59 +01:00
|
|
|
######################################################
|
|
|
|
## ##
|
|
|
|
## THIS FILE IS MANAGED BY ANSIBLE ##
|
|
|
|
## ##
|
|
|
|
## It is about time ##
|
|
|
|
## ##
|
|
|
|
######################################################
|
|
|
|
# > galaxy.ansible.com/ui/repo/published/l3d/time/ < #
|
2018-12-28 15:10:34 +01:00
|
|
|
driftfile {{ ntp_driftfile }}
|
|
|
|
|
2023-11-28 03:05:59 +01:00
|
|
|
{% if ntp_leap %}
|
|
|
|
# Leap seconds definition provided by tzdata
|
|
|
|
leapfile {{ ntp_leapfile }}
|
|
|
|
{% endif %}
|
|
|
|
|
2019-06-05 15:38:18 +02:00
|
|
|
{% for restrict_ip in ntp_restrict %}
|
2018-12-28 15:10:34 +01:00
|
|
|
restrict {{ restrict_ip }}
|
2019-06-05 15:38:18 +02:00
|
|
|
{% endfor %}
|
2018-12-28 15:10:34 +01:00
|
|
|
|
2019-06-05 15:38:18 +02:00
|
|
|
{% for pool_server in ntp_servers %}
|
2018-12-28 15:10:34 +01:00
|
|
|
server {{ pool_server }}
|
2019-06-05 15:38:18 +02:00
|
|
|
{% endfor %}
|
2018-12-28 15:10:34 +01:00
|
|
|
|
2019-06-05 15:38:18 +02:00
|
|
|
{% if ntp_statistics | bool %}
|
2023-11-28 03:05:59 +01:00
|
|
|
statistics {{ ntp_statistics_overview | join(' ') }}
|
|
|
|
|
|
|
|
# Enable this if you want statistics to be logged.
|
|
|
|
statsdir {{ ntp_ntpstats_dir }}
|
|
|
|
|
|
|
|
{% for stat in ntp_statistics_overview %}
|
|
|
|
filegen {{ stat }} file {{ stat }} type day enable
|
|
|
|
{% endfor %}
|
|
|
|
|
2019-06-05 15:38:18 +02:00
|
|
|
{% endif %}
|