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

19 lines
453 B
YAML
Raw Normal View History

2022-09-11 20:55:30 +02:00
- name: Install logcheck and logrotate
apt:
name:
- logcheck
- logrotate
- name: Configure logcheck
2022-09-22 20:13:19 +02:00
copy:
src: ./filesystem/common/etc/logcheck/logcheck.conf
dest: /etc/logcheck/logcheck.conf
mode: 0640
- name: Configure logcheck ignores
2022-09-11 20:55:30 +02:00
template:
src: ./filesystem/common/etc/logcheck/ignore.d.server/_hostname.j2
2022-09-22 22:51:43 +02:00
dest: /etc/logcheck/ignore.d.server/{{ ansible_hostname }}
2022-09-11 20:55:30 +02:00
group: logcheck
mode: 0644