ansible-role-fstrim/tasks/main.yml

19 lines
669 B
YAML
Raw Normal View History

2016-03-06 23:05:05 +01:00
---
2016-04-29 18:54:48 +02:00
- name: Install custom fstrim.service
copy: src=fstrim.service dest=/etc/systemd/system/
notify: systemd-daemon-reload
- name: Install fstrim.timer on Debian
copy: src=fstrim.timer.debian dest=/etc/systemd/system/fstrim.timer
2018-03-09 15:15:16 +01:00
when: ansible_distribution == 'Debian' or ansible_distribution == 'Ubuntu'
2016-04-29 18:54:48 +02:00
notify: systemd-daemon-reload
2016-12-03 14:34:46 +01:00
- name: Configure fstrim.timer
file: path=/etc/systemd/system/fstrim.timer.d state=directory
- name: Configure fstrim.timer
copy: src=10-daily.conf dest=/etc/systemd/system/fstrim.timer.d/10-daily.conf
2016-03-06 23:05:05 +01:00
notify: systemd-daemon-reload
2016-04-29 18:54:48 +02:00
2016-12-03 14:34:46 +01:00
- name: Enable fstrim.timer
service: name=fstrim.timer enabled=yes state=started