From 64de32cee7c379a279e7fc40051e75b22727a3ef Mon Sep 17 00:00:00 2001 From: Christian Pointner Date: Sat, 27 Apr 2024 22:08:26 +0200 Subject: don't install dstat for noble and trixie and beyond --- roles/core/base/tasks/Debian.yml | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) (limited to 'roles/core/base/tasks') diff --git a/roles/core/base/tasks/Debian.yml b/roles/core/base/tasks/Debian.yml index 2d6bb364..73fa2420 100644 --- a/roles/core/base/tasks/Debian.yml +++ b/roles/core/base/tasks/Debian.yml @@ -19,7 +19,6 @@ apt: name: - htop - - dstat - lsof - gawk - psmisc @@ -46,6 +45,13 @@ - bwm-ng state: present + ## 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) + apt: + name: dstat + state: present + - name: install extra packages apt: name: "{{ base_packages_extra_host | union(base_packages_extra_group) }}" -- cgit v1.2.3