mirror of
https://github.com/pigmonkey/spark.git
synced 2026-08-02 12:32:25 +00:00
enable trim timer
This commit is contained in:
parent
13d82bbffe
commit
90190826e1
2 changed files with 10 additions and 0 deletions
|
|
@ -6,6 +6,7 @@
|
|||
- { role: grsec, tags: ['grsec'] }
|
||||
- { role: ssh, tags: ['ssh'] }
|
||||
- { role: dotfiles, tags: ['dotfiles'] }
|
||||
- { role: ssd, tags: ['ssd'] }
|
||||
- { role: fonts, tags: ['fonts'] }
|
||||
- { role: x, tags: ['x'] }
|
||||
- { role: slim, tags: ['slim'] }
|
||||
|
|
|
|||
9
roles/ssd/tasks/main.yml
Normal file
9
roles/ssd/tasks/main.yml
Normal file
|
|
@ -0,0 +1,9 @@
|
|||
---
|
||||
- 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