From 6abc58229f057a63e1799c834538d5fb139c6e22 Mon Sep 17 00:00:00 2001 From: Christian Pointner Date: Fri, 10 May 2024 00:19:23 +0200 Subject: migrate all os release comparisons to use new filter --- roles/core/ntp/tasks/Debian_systemd-timesyncd.yml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'roles/core/ntp/tasks/Debian_systemd-timesyncd.yml') diff --git a/roles/core/ntp/tasks/Debian_systemd-timesyncd.yml b/roles/core/ntp/tasks/Debian_systemd-timesyncd.yml index 40c6629e..5fa60510 100644 --- a/roles/core/ntp/tasks/Debian_systemd-timesyncd.yml +++ b/roles/core/ntp/tasks/Debian_systemd-timesyncd.yml @@ -7,7 +7,8 @@ msg: "systemd-timesyncd can not be used as a NTP server or sync to local clocks" - name: install systemd-timesyncd - when: (ansible_distribution == 'Debian' and (ansible_distribution_major_version | int) > 10) or (ansible_distribution == 'Ubuntu') + when: (ansible_distribution == 'Debian' and (ansible_distribution_release | debian_release_compare('>', 'buster'))) or + (ansible_distribution == 'Ubuntu') apt: name: systemd-timesyncd state: present -- cgit v1.2.3