summaryrefslogtreecommitdiff
path: root/roles/core/ntp
diff options
context:
space:
mode:
authorChristian Pointner <equinox@spreadspace.org>2024-05-10 00:19:23 +0200
committerChristian Pointner <equinox@spreadspace.org>2024-05-10 00:19:23 +0200
commit6abc58229f057a63e1799c834538d5fb139c6e22 (patch)
tree80c6639e569e2e83640d7fcce5b39d258aa6dd06 /roles/core/ntp
parentmake debian/ubuntu os release compare script much more generic (diff)
migrate all os release comparisons to use new filter
Diffstat (limited to 'roles/core/ntp')
-rw-r--r--roles/core/ntp/tasks/Debian_systemd-timesyncd.yml3
1 files changed, 2 insertions, 1 deletions
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