+- name: Install logcheck
+ become: true
+ apt:
+ autoclean: yes
+ autoremove: yes
+ install_recommends: no
+ name: logcheck
+ purge: yes
+ state: latest
+ update_cache: yes
+
+- name: Configure logcheck
+ become: true
+ lineinfile:
+ path: /etc/logcheck/logcheck.conf
+ regexp: "^INTRO=0$"
+ line: "INTRO=0"
+ insertafter: "^#INTRO=1$"
+