infrastructure/ansible/roles/base/files/fail2ban-logrotate

11 lines
178 B
Text

/var/log/fail2ban.log {
weekly
rotate 7
missingok
compress
nodateext
notifempty
postrotate
/usr/bin/fail2ban-client flushlogs 1>/dev/null || true
endscript
}