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

20 lines
444 B
YAML
Raw Normal View History

2022-12-18 23:43:40 +01:00
---
2022-12-20 17:31:37 +01:00
- name: "install logcheck and logrotate"
ansible.builtin.apt:
name:
- "logcheck"
- "logrotate"
2022-12-20 17:31:37 +01:00
- name: "configure logcheck"
ansible.builtin.copy:
2022-12-20 17:31:37 +01:00
src: "./logcheck.conf"
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"
dest: "/etc/logcheck/ignore.d.server/{{ ansible_hostname }}"
group: "logcheck"
mode: 0644