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:
parent
57a9b8f70a
commit
dd12a25400
1 changed files with 1 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue