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