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