Commit bb1bca2a authored by Guillaume Hervier's avatar Guillaume Hervier

playbook/roles/fstrim: Disable and remove systemd timer

parent e04e23e9
......@@ -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