diff --git a/handlers/systemd-daemon-reload.yml b/handlers/systemd-daemon-reload.yml index a1baeec..10a541e 100644 --- a/handlers/systemd-daemon-reload.yml +++ b/handlers/systemd-daemon-reload.yml @@ -1,3 +1,3 @@ --- - name: systemd-daemon-reload - shell: systemctl daemon-reload + command: systemctl daemon-reload diff --git a/tasks/main.yml b/tasks/main.yml index fe76547..8cfd13d 100644 --- a/tasks/main.yml +++ b/tasks/main.yml @@ -8,9 +8,9 @@ when: ansible_distribution == 'Debian' notify: systemd-daemon-reload -- name: Create fstrim.timer.d +- name: Configure fstrim.timer file: path=/etc/systemd/system/fstrim.timer.d state=directory -- name: Configure fstrim.timer to run daily +- name: Configure fstrim.timer copy: src=10-daily.conf dest=/etc/systemd/system/fstrim.timer.d/10-daily.conf notify: systemd-daemon-reload