Install fstrim.timer on Debian

This commit is contained in:
neingeist 2016-04-29 18:54:48 +02:00
parent 82fe1a0b1a
commit 05cd0b6b39
2 changed files with 21 additions and 2 deletions

View file

@ -1,7 +1,15 @@
---
- 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
when: ansible_distribution == 'Debian'
notify: systemd-daemon-reload
- file: path=/etc/systemd/system/fstrim.timer.d state=directory
- copy: src=10-daily.conf dest=/etc/systemd/system/fstrim.timer.d/10-daily.conf
notify: systemd-daemon-reload
- service: name=fstrim.timer enabled=yes state=started
- copy: src=fstrim.service dest=/etc/systemd/system/
notify: systemd-daemon-reload