ansible-edda/playbooks/roles/system/base/tasks/include/logs.yml

20 lines
476 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