From 3cb97da40312277f7c80409974e6e81bf71fc1e3 Mon Sep 17 00:00:00 2001 From: "Dr. Jens Harbott" Date: Mon, 10 Jul 2023 20:36:59 +0200 Subject: [PATCH] logrotate: fix removal of old config files The path was missing the right prefix Change-Id: I217fb0799603fb954575df8f6108cae6c4d47c01 --- playbooks/roles/logrotate/tasks/main.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/playbooks/roles/logrotate/tasks/main.yaml b/playbooks/roles/logrotate/tasks/main.yaml index 5059f838e5..28376ae342 100644 --- a/playbooks/roles/logrotate/tasks/main.yaml +++ b/playbooks/roles/logrotate/tasks/main.yaml @@ -27,7 +27,7 @@ - name: Clear out potentially confusing config files file: state: absent - path: '{{ _old_logrotate_generated_config_file_name }}' + path: '/etc/logrotate.d/{{ _old_logrotate_generated_config_file_name }}' - name: 'Install {{ logrotate_file_name }} rotatation config file' template: