ansible-edda/playbooks/tasks/hosts/logs.yml

19 lines
452 B
YAML

- name: Install logcheck and logrotate
apt:
name:
- logcheck
- logrotate
- name: Configure logcheck
copy:
src: ./filesystem/common/etc/logcheck/logcheck.conf
dest: /etc/logcheck/logcheck.conf
mode: 0640
- name: Configure logcheck ignores
template:
src: ./filesystem/common/etc/logcheck/ignore.d.server/hostname.j2
dest: /etc/logcheck/ignore.d.server/{{ ansible_hostname }}
group: logcheck
mode: 0644