2022-12-18 23:43:40 +01:00
|
|
|
---
|
2022-12-20 17:31:37 +01:00
|
|
|
- name: "install logcheck and logrotate"
|
2022-12-04 15:14:43 +01:00
|
|
|
ansible.builtin.apt:
|
|
|
|
name:
|
|
|
|
- "logcheck"
|
|
|
|
- "logrotate"
|
|
|
|
|
2022-12-20 17:31:37 +01:00
|
|
|
- name: "configure logcheck"
|
2022-12-04 15:14:43 +01:00
|
|
|
ansible.builtin.copy:
|
2022-12-20 17:31:37 +01:00
|
|
|
src: "./logcheck.conf"
|
2022-12-04 15:14:43 +01:00
|
|
|
dest: "/etc/logcheck/logcheck.conf"
|
|
|
|
mode: 0640
|
|
|
|
|
|
|
|
- name: "logs : configure logcheck ignores"
|
|
|
|
ansible.builtin.copy:
|
2022-12-20 17:31:37 +01:00
|
|
|
src: "./ignore"
|
2022-12-04 15:14:43 +01:00
|
|
|
dest: "/etc/logcheck/ignore.d.server/{{ ansible_hostname }}"
|
|
|
|
group: "logcheck"
|
|
|
|
mode: 0644
|