2020-12-27 22:39:33 +00:00
|
|
|
- name: Install logrotate
|
|
|
|
package:
|
|
|
|
name: logrotate
|
|
|
|
become: true
|
|
|
|
|
|
|
|
- name: Enable logrotate timer
|
|
|
|
service:
|
|
|
|
name: logrotate.timer
|
2020-12-28 15:14:50 +00:00
|
|
|
enabled: true
|
2020-12-27 22:39:33 +00:00
|
|
|
become: true
|
|
|
|
when: ansible_os_family == 'Archlinux'
|
|
|
|
|
|
|
|
- name: logrotate fail2ban config
|
|
|
|
template:
|
|
|
|
src: files/fail2ban-logrotate
|
|
|
|
dest: /etc/logrotate.d/fail2ban
|
|
|
|
mode: "0600"
|
|
|
|
become: true
|