From 500ccfbaedb7e015b9d17af5bde017b863d199b9 Mon Sep 17 00:00:00 2001 From: Wojciech Kozlowski Date: Fri, 29 Nov 2019 09:10:44 +0100 Subject: [PATCH] Use template instead of copy for fstrim --- .../systemd/system/{fstrim.service => fstrim.service.j2} | 0 .../etc/systemd/system/{fstrim.timer => fstrim.timer.j2} | 0 ansible/main.yml | 8 ++++---- 3 files changed, 4 insertions(+), 4 deletions(-) rename ansible/etc/systemd/system/{fstrim.service => fstrim.service.j2} (100%) rename ansible/etc/systemd/system/{fstrim.timer => fstrim.timer.j2} (100%) diff --git a/ansible/etc/systemd/system/fstrim.service b/ansible/etc/systemd/system/fstrim.service.j2 similarity index 100% rename from ansible/etc/systemd/system/fstrim.service rename to ansible/etc/systemd/system/fstrim.service.j2 diff --git a/ansible/etc/systemd/system/fstrim.timer b/ansible/etc/systemd/system/fstrim.timer.j2 similarity index 100% rename from ansible/etc/systemd/system/fstrim.timer rename to ansible/etc/systemd/system/fstrim.timer.j2 diff --git a/ansible/main.yml b/ansible/main.yml index bef1f70..17ecd83 100644 --- a/ansible/main.yml +++ b/ansible/main.yml @@ -31,14 +31,14 @@ # ------------------------------------------------------------------------- - name: Copy fstrim service file - copy: - src: ./etc/systemd/system/fstrim.service + template: + src: ./etc/systemd/system/fstrim.service.j2 dest: /etc/systemd/system/fstrim.service mode: 0644 - name: Copy fstrim timer file - copy: - src: ./etc/systemd/system/fstrim.timer + template: + src: ./etc/systemd/system/fstrim.timer.j2 dest: /etc/systemd/system/fstrim.timer mode: 0644