diff options
author | Christian Pointner <equinox@spreadspace.org> | 2024-04-11 22:14:54 +0200 |
---|---|---|
committer | Christian Pointner <equinox@spreadspace.org> | 2024-04-11 22:14:54 +0200 |
commit | 9e0ffbb8f490ece3cf5108efab849657cc15dda0 (patch) | |
tree | 567545c77862136d522dd8753334e35ec5994dec /roles/core/base/tasks | |
parent | sk-cloudio: enable autotrim on nvme based zfs pool (diff) |
make sure fstrim is activated on all hosts
Diffstat (limited to 'roles/core/base/tasks')
-rw-r--r-- | roles/core/base/tasks/Debian.yml | 6 |
1 files changed, 6 insertions, 0 deletions
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 }}" |