From 99da071d9b9ddc14a6addfd4588131e60b1eae88 Mon Sep 17 00:00:00 2001 From: neingeist Date: Mon, 23 Oct 2017 18:10:06 +0200 Subject: [PATCH] Name tasks --- tasks/main.yml | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/tasks/main.yml b/tasks/main.yml index ab06d52..fe76547 100644 --- a/tasks/main.yml +++ b/tasks/main.yml @@ -8,8 +8,11 @@ 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 +- 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 notify: systemd-daemon-reload -- service: name=fstrim.timer enabled=yes state=started +- name: Enable fstrim.timer + service: name=fstrim.timer enabled=yes state=started