line: "INTRO=0"
insertafter: "^#INTRO=1$"
-- name: Configure logcheck - send to root
+- name: Configure logcheck - send email to root
become: true
lineinfile:
path: /etc/logcheck/logcheck.conf
line: 'SENDMAILTO="root"'
insertafter: '^SENDMAILTO="logcheck"$'
-- name: Configure logcheck - not send to logcheck
+- name: Configure logcheck - do not send email to logcheck
become: true
lineinfile:
path: /etc/logcheck/logcheck.conf
regexp: '^SENDMAILTO="logcheck"$'
state: absent
-- name: Update logcheck ignore patterns
+- name: Update logcheck ignore files
become: true
copy:
src: ignore.d/