Commit 89ba3e16 authored by Guillaume Hervier's avatar Guillaume Hervier Committed by Alain Takoudjou

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

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