From 9e0ffbb8f490ece3cf5108efab849657cc15dda0 Mon Sep 17 00:00:00 2001 From: Christian Pointner Date: Thu, 11 Apr 2024 22:14:54 +0200 Subject: make sure fstrim is activated on all hosts --- roles/core/base/tasks/Debian.yml | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'roles/core/base/tasks') diff --git a/roles/core/base/tasks/Debian.yml b/roles/core/base/tasks/Debian.yml index 803b0173..2d6bb364 100644 --- a/roles/core/base/tasks/Debian.yml +++ b/roles/core/base/tasks/Debian.yml @@ -141,3 +141,9 @@ - name: apply stability fix/workaround for machines using intel NIC when: base_intel_nic_stability_fix import_tasks: intel-nic.yml + +- name: enable/disable fstrim timer + systemd: + name: fstrim.timer + state: "{{ base_enable_fstrim | ternary('started', 'stopped') }}" + enabled: "{{ base_enable_fstrim }}" -- cgit v1.2.3