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

19 lines
364 B
YAML
Raw Permalink Normal View History

- 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
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