From dd12a25400101dc8106d5b583d0f7273e9f9beb1 Mon Sep 17 00:00:00 2001 From: Kevin Fenzi Date: Wed, 17 Jan 2024 08:45:41 -0800 Subject: [PATCH] logrotate: this has to replace the rsyslog file, not add rsyslog-logroate Missed this in review, but if we do this it causes logrotate to error out because there's a rsyslog and a rsyslog-logrotate files with the same log files mentioned. So, we need to just replace the stock rsyslog file and not use the ryslog-logrotate one. ;) Signed-off-by: Kevin Fenzi --- roles/base/tasks/main.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/roles/base/tasks/main.yml b/roles/base/tasks/main.yml index 3c50f0272a..796c5a9e06 100644 --- a/roles/base/tasks/main.yml +++ b/roles/base/tasks/main.yml @@ -563,7 +563,7 @@ import_tasks: crypto-policies.yml - name: proxy log rotate for proxy servers - copy: src="{{ files }}/common/rsyslog-logrotate" dest=/etc/logrotate.d/rsyslog-logrotate mode=0644 + copy: src="{{ files }}/common/rsyslog-logrotate" dest=/etc/logrotate.d/rsyslog mode=0644 when: inventory_hostname.startswith('proxy') notify: - restart rsyslog