From 3da14701bd4cc6a709829e07246d43cee567ff53 Mon Sep 17 00:00:00 2001 From: Denis Knauf Date: Fri, 20 Sep 2024 00:39:47 +0200 Subject: [PATCH] logcompress: ansible does not finde j2-file, so give path explicit --- tasks/systemd.yml | 6 ++---- templates/{systemd/system => }/logcompress.service.j2 | 0 2 files changed, 2 insertions(+), 4 deletions(-) rename templates/{systemd/system => }/logcompress.service.j2 (100%) diff --git a/tasks/systemd.yml b/tasks/systemd.yml index 4e79efc..9dcb342 100644 --- a/tasks/systemd.yml +++ b/tasks/systemd.yml @@ -57,13 +57,11 @@ - name: install systemd-logcompress-jobs template: - src: "{{item}}" - dest: /etc/systemd/system + src: logcompress.service.j2 + dest: /etc/systemd/system/logcompress.service owner: root group: root mode: 0644 - with_fileglob: - - "systemd/system/*" vars: command: '{{ logcompress_command | default( logcompress_compression_commands[ logcompress_algo | default( "zstd") ] ) }}' diff --git a/templates/systemd/system/logcompress.service.j2 b/templates/logcompress.service.j2 similarity index 100% rename from templates/systemd/system/logcompress.service.j2 rename to templates/logcompress.service.j2