logcompress: ansible does not finde j2-file, so give path explicit

This commit is contained in:
Denis Knauf 2024-09-20 00:39:47 +02:00
parent 5937888ce2
commit 3da14701bd
2 changed files with 2 additions and 4 deletions

View file

@ -57,13 +57,11 @@
- name: install systemd-logcompress-jobs - name: install systemd-logcompress-jobs
template: template:
src: "{{item}}" src: logcompress.service.j2
dest: /etc/systemd/system dest: /etc/systemd/system/logcompress.service
owner: root owner: root
group: root group: root
mode: 0644 mode: 0644
with_fileglob:
- "systemd/system/*"
vars: vars:
command: '{{ logcompress_command | default( logcompress_compression_commands[ logcompress_algo | default( "zstd") ] ) }}' command: '{{ logcompress_command | default( logcompress_compression_commands[ logcompress_algo | default( "zstd") ] ) }}'