Ensure fail2ban and logrotate are available on all machines
This commit is contained in:
11
ansible/roles/base/files/fail2ban-logrotate
Normal file
11
ansible/roles/base/files/fail2ban-logrotate
Normal file
@ -0,0 +1,11 @@
|
||||
/var/log/fail2ban.log {
|
||||
weekly
|
||||
rotate 7
|
||||
missingok
|
||||
compress
|
||||
nodateext
|
||||
notifempty
|
||||
postrotate
|
||||
/usr/bin/fail2ban-client flushlogs 1>/dev/null || true
|
||||
endscript
|
||||
}
|
Reference in New Issue
Block a user