Commit e04e23e9 authored by Guillaume Hervier's avatar Guillaume Hervier

playbook/roles/fstrim: Use generic cron instead of systemd timer

parent 5b301bba
......@@ -4,20 +4,9 @@
path: /sbin/fstrim
register: fstrim
- name: Install systemd files
template:
src: '{{ item }}'
dest: '/etc/systemd/system/'
owner: root
group: root
mode: 0644
with_items:
- fstrim.service
- fstrim.timer
when: fstrim.stat.exists
- name: Enable fstrim timer
service:
name: fstrim.timer
enabled: true
- name: Install cron for fstrim
cron:
name: fstrim
job: /sbin/fstrim -a
special_time: weekly
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