]> git.phdru.name Git - ansible.git/commitdiff
Feat(logcheck): Disable `INTRO`
authorOleg Broytman <phd@phdru.name>
Wed, 31 Jul 2019 16:48:10 +0000 (19:48 +0300)
committerOleg Broytman <phd@phdru.name>
Wed, 31 Jul 2019 16:48:10 +0000 (19:48 +0300)
playbooks/debian/roles/logcheck/tasks/main.yml

index ece8d49828437060bbf7ff5cfa01f6fd34cfff35..e72afeb8ef94e8c651ab95d3883e5587a5199daa 100644 (file)
@@ -9,6 +9,14 @@
     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$"
+
 - name: Update logcheck ignore patterns
   become: true
   copy: