Commit 23992da7 authored by Guillaume Hervier's avatar Guillaume Hervier Committed by Alain Takoudjou

playbook/roles/fstrim: Disable and remove systemd timer

parent 89ba3e16
......@@ -10,3 +10,19 @@
job: /sbin/fstrim -a
special_time: weekly
when: fstrim.stat.exists
- name: Disable systemd timer
service:
name: fstrim.timer
enabled: false
when: fstrim.stat.exists
ignore_errors: yes
- name: Remove systemd timer/service files
file:
path: '/etc/systemd/system/{{item}}'
state: absent
with_items:
- fstrim.service
- fstrim.timer
when: fstrim.stat.exists
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment