From 99da071d9b9ddc14a6addfd4588131e60b1eae88 Mon Sep 17 00:00:00 2001 From: neingeist Date: Mon, 23 Oct 2017 18:10:06 +0200 Subject: [PATCH 1/3] 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 From 26d6ffd18778ac81d69dcd3c6b0c9bb8805c59b8 Mon Sep 17 00:00:00 2001 From: neingeist Date: Tue, 27 Feb 2018 10:17:00 +0100 Subject: [PATCH 2/3] s/include/import_tasks --- handlers/main.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/handlers/main.yml b/handlers/main.yml index 8b6e811..84ea144 100644 --- a/handlers/main.yml +++ b/handlers/main.yml @@ -1 +1 @@ -- include: systemd-daemon-reload.yml +- import_tasks: systemd-daemon-reload.yml From 91a279cf53f4e7eef9b0840a45a8c1c181e95fcb Mon Sep 17 00:00:00 2001 From: neingeist Date: Fri, 9 Mar 2018 15:15:16 +0100 Subject: [PATCH 3/3] ubuntify --- tasks/main.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tasks/main.yml b/tasks/main.yml index 8cfd13d..13503da 100644 --- a/tasks/main.yml +++ b/tasks/main.yml @@ -5,7 +5,7 @@ - name: Install fstrim.timer on Debian copy: src=fstrim.timer.debian dest=/etc/systemd/system/fstrim.timer - when: ansible_distribution == 'Debian' + when: ansible_distribution == 'Debian' or ansible_distribution == 'Ubuntu' notify: systemd-daemon-reload - name: Configure fstrim.timer