Enable fstrim timer
To increase SSD livespan(s)
This commit is contained in:
parent
00b7536f5e
commit
2ec09dc63c
1 changed files with 10 additions and 4 deletions
|
|
@ -1,5 +1,5 @@
|
|||
- name: copy reflector configuration
|
||||
become: yes
|
||||
become: true
|
||||
template:
|
||||
src: 'templates/reflector.j2'
|
||||
dest: '/etc/xdg/reflector/reflector.conf'
|
||||
|
|
@ -16,7 +16,7 @@
|
|||
enabled: false
|
||||
|
||||
- name: copy pacman configuration
|
||||
become: yes
|
||||
become: true
|
||||
template:
|
||||
src: 'templates/pacman.j2'
|
||||
dest: '/etc/pacman.conf'
|
||||
|
|
@ -25,7 +25,7 @@
|
|||
mode: '0644'
|
||||
|
||||
- name: create extra conf
|
||||
become: yes
|
||||
become: true
|
||||
file:
|
||||
path: '/etc/pacman.d/extra.conf'
|
||||
owner: root
|
||||
|
|
@ -34,7 +34,7 @@
|
|||
mode: '0644'
|
||||
|
||||
- name: copy powertop service
|
||||
become: yes
|
||||
become: true
|
||||
template:
|
||||
src: 'templates/{{ platform }}/powertop.j2'
|
||||
dest: '/etc/systemd/system/powertop.service'
|
||||
|
|
@ -43,3 +43,9 @@
|
|||
mode: '0644'
|
||||
notify: restart powertop
|
||||
when: platform == "laptop"
|
||||
|
||||
- name: enable fstrim timer
|
||||
become: true
|
||||
systemd:
|
||||
name: fstrim.timer
|
||||
enabled: true
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue