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.
This commit is contained in:
Pig Monkey 2021-10-21 18:24:42 -07:00
parent 88f78109d7
commit f21dc955de

View file

@ -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"