1 - name: Install logcheck (Debian)
8 name: ['logcheck', 'logcheck-database']
11 when: ansible_facts.os_family == 'Debian'
13 - name: Install logcheck (RedHat)
19 when: ansible_facts.os_family == 'RedHat'
21 - name: Configure logcheck - intro
24 path: /etc/logcheck/logcheck.conf
27 insertafter: "^#INTRO=1$"
29 - name: Configure logcheck - disable systemd journal
32 path: /etc/logcheck/logcheck.logfiles.d/journal.logfiles
36 - name: Configure logcheck - send email to root
40 line: 'logcheck: root'
42 - name: Update logcheck ignore files
45 src: "{{ ansible_facts.user_dir }}/admin/ansible/playbooks/roles/logcheck/files/ignore.d/"
47 dest: "/etc/logcheck/ignore.d.{{ item }}"
50 directory_mode: '0750'
52 loop: ['server', 'workstation']