From 1333fc67a062abfebfb0739f62c21df44c775caa Mon Sep 17 00:00:00 2001 From: Lars Beckers <lars.beckers@rwth-aachen.de> Date: Tue, 4 May 2021 13:24:32 +0200 Subject: [PATCH] localization: fix timesyncd absence on ntp systems --- localization/tasks/ntpd.yml | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/localization/tasks/ntpd.yml b/localization/tasks/ntpd.yml index c7ca28c..53bfe87 100644 --- a/localization/tasks/ntpd.yml +++ b/localization/tasks/ntpd.yml @@ -6,6 +6,15 @@ name: systemd-timesyncd state: stopped enabled: false + when: ansible_distribution_major_version|int(default=99) < 11 + tags: + - ntpd + +- name: ensure there is no timesyncd running + apt: + name: systemd-timesyncd + state: absent + when: ansible_distribution_major_version|int(default=99) > 10 tags: - ntpd -- GitLab