ansible-edda/plays/roles/system_base/tasks/include/logs.yml

19 lines
472 B
YAML
Raw Normal View History

- 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