[ipa/server] Add logrotate config for krb5kdc
The log files for krb5kdc had around 1 GB each on ipa01.stg. To prevent this in future let us replace the original config with one that is compressing the old logs. Signed-off-by: Michal Konecny <mkonecny@redhat.com>
This commit is contained in:
parent
318febc512
commit
b3a22d9049
2 changed files with 16 additions and 0 deletions
10
roles/ipa/server/files/logrotate_krb5kdc
Normal file
10
roles/ipa/server/files/logrotate_krb5kdc
Normal file
|
@ -0,0 +1,10 @@
|
|||
var/log/krb5kdc.log {
|
||||
missingok
|
||||
notifempty
|
||||
monthly
|
||||
rotate 12
|
||||
compress
|
||||
postrotate
|
||||
systemctl reload krb5kdc.service || true
|
||||
endscript
|
||||
}
|
|
@ -613,6 +613,12 @@
|
|||
- config
|
||||
- krb5
|
||||
|
||||
- name: Copy the new krb5 logrotate config
|
||||
ansible.builtin.copy:
|
||||
src: logrotate_krb5kdc
|
||||
dest: /etc/logrotate.d/krb5kdc
|
||||
mode: '0644'
|
||||
backup: yes
|
||||
|
||||
- import_tasks: scripts.yml
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue