19 lines
472 B
YAML
19 lines
472 B
YAML
- name: "logs : install logcheck and logrotate"
|
|
ansible.builtin.apt:
|
|
name:
|
|
- "logcheck"
|
|
- "logrotate"
|
|
|
|
- name: "logs : configure logcheck"
|
|
ansible.builtin.copy:
|
|
src: "./logcheck/logcheck.conf"
|
|
dest: "/etc/logcheck/logcheck.conf"
|
|
mode: 0640
|
|
|
|
- name: "logs : configure logcheck ignores"
|
|
ansible.builtin.copy:
|
|
src: "./logcheck/ignore"
|
|
dest: "/etc/logcheck/ignore.d.server/{{ ansible_hostname }}"
|
|
group: "logcheck"
|
|
mode: 0644
|