2022-09-11 20:55:30 +02:00
|
|
|
- name: Install logcheck and logrotate
|
|
|
|
apt:
|
|
|
|
name:
|
|
|
|
- logcheck
|
|
|
|
- logrotate
|
|
|
|
|
|
|
|
- name: Configure logcheck
|
2022-09-22 20:13:19 +02:00
|
|
|
copy:
|
|
|
|
src: ./filesystem/common/etc/logcheck/logcheck.conf
|
|
|
|
dest: /etc/logcheck/logcheck.conf
|
|
|
|
mode: 0640
|
|
|
|
|
|
|
|
- name: Configure logcheck ignores
|
2022-09-11 20:55:30 +02:00
|
|
|
template:
|
2022-09-21 23:57:15 +02:00
|
|
|
src: ./filesystem/common/etc/logcheck/ignore.d.server/hostname.j2
|
2022-09-22 22:51:43 +02:00
|
|
|
dest: /etc/logcheck/ignore.d.server/{{ ansible_hostname }}
|
2022-09-11 20:55:30 +02:00
|
|
|
group: logcheck
|
|
|
|
mode: 0644
|