You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

19 lines
645 B
YAML

9 years ago
---
- 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
7 years ago
- name: Create fstrim.timer.d
file: path=/etc/systemd/system/fstrim.timer.d state=directory
- name: Configure fstrim.timer to run daily
copy: src=10-daily.conf dest=/etc/systemd/system/fstrim.timer.d/10-daily.conf
9 years ago
notify: systemd-daemon-reload
7 years ago
- name: Enable fstrim.timer
service: name=fstrim.timer enabled=yes state=started