infrastructure/ansible/roles/base/tasks/logrotate.yml

16 lines
319 B
YAML
Raw Permalink Normal View History

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