From 3457b14fed290e73c0bd4a1339c60824b1dd6e6a Mon Sep 17 00:00:00 2001 From: Ludovic Poujol Date: Wed, 21 Apr 2021 17:22:45 +0200 Subject: [PATCH] ntpd: Add leapfile configuration setting to ntpd on debian 10+ --- CHANGELOG.md | 2 ++ ntpd/templates/ntp.conf.j2 | 5 +++++ 2 files changed, 7 insertions(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index 4f35ea6c..2f0b17a2 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -16,6 +16,8 @@ The **patch** part changes incrementally at each release. ### Changed +* ntpd: Add leapfile configuration setting to ntpd on debian 10+ + ### Fixed ### Removed diff --git a/ntpd/templates/ntp.conf.j2 b/ntpd/templates/ntp.conf.j2 index e57dad33..d89a83ee 100644 --- a/ntpd/templates/ntp.conf.j2 +++ b/ntpd/templates/ntp.conf.j2 @@ -2,6 +2,11 @@ driftfile /var/lib/ntp/ntp.drift +{% if ansible_distribution_major_version is version('10', '>=') %} +# Leap seconds definition provided by tzdata +leapfile /usr/share/zoneinfo/leap-seconds.list +{% endif %} + # Enable this if you want statistics to be logged. #statsdir /var/log/ntpstats/