From f21dc955de76ff2f8e14e740d41b8212522a3bd1 Mon Sep 17 00:00:00 2001 From: Pig Monkey Date: Thu, 21 Oct 2021 18:24:42 -0700 Subject: [PATCH] always enable periodic TRIM fstrim will quietly skip unsupported drives. Removing the check here allows us to avoid the problem of figuring out if `/dev/sda` is actually the correct device to be looking at. --- roles/ssd/tasks/main.yml | 6 ------ 1 file changed, 6 deletions(-) diff --git a/roles/ssd/tasks/main.yml b/roles/ssd/tasks/main.yml index 94e0499..60935d0 100644 --- a/roles/ssd/tasks/main.yml +++ b/roles/ssd/tasks/main.yml @@ -2,11 +2,5 @@ - name: Install hdparm pacman: name=hdparm state=present -- name: Check for TRIM support - shell: "hdparm -I /dev/sda | grep TRIM" - register: hdparm - ignore_errors: True - - name: Enable and start weekly filesystem TRIM timer service: name=fstrim.timer enabled=yes state=started - when: "hdparm.rc == 0"