mirror of
https://github.com/pigmonkey/spark.git
synced 2026-01-23 02:24:09 +00:00
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:
parent
88f78109d7
commit
f21dc955de
1 changed files with 0 additions and 6 deletions
|
|
@ -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"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue