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 <kevin@scrye.com>
This commit is contained in:
Kevin Fenzi 2024-01-17 08:45:41 -08:00
parent 57a9b8f70a
commit dd12a25400

View file

@ -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