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: