mirror of
https://pagure.io/fedora-infra/ansible.git
synced 2026-04-24 18:41:38 +08:00
[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:
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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user