From 477cdee79a54f98eb2ac973ef38138cf417d7bfb Mon Sep 17 00:00:00 2001 From: Christian Pointner Date: Thu, 9 May 2024 22:00:19 +0200 Subject: make debian/ubuntu os release compare script much more generic --- roles/core/base/tasks/Debian.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'roles/core') diff --git a/roles/core/base/tasks/Debian.yml b/roles/core/base/tasks/Debian.yml index 7056a9bc..a735bcc7 100644 --- a/roles/core/base/tasks/Debian.yml +++ b/roles/core/base/tasks/Debian.yml @@ -48,7 +48,7 @@ ## TODO: install dool on newer systems... or all of them. From which package source?? - name: install dstat for older systems only - when: (ansible_distribution == 'Debian' and (ansible_distribution_major_version | int) <= 12) or (ansible_distribution == 'Ubuntu' and (ansible_distribution_major_version | int) < 24) + when: (ansible_distribution == 'Debian' and (ansible_distribution_release | debian_release_compare('<=', 'bookworm'))) or (ansible_distribution == 'Ubuntu' and (ansible_distribution_release | debian_release_compare('<', 'noble'))) apt: name: dstat state: present -- cgit v1.2.3