X-Git-Url: https://git.phdru.name/?a=blobdiff_plain;ds=sidebyside;f=playbooks%2Froles%2Flogcheck%2Ftasks%2Fmain.yml;h=db94486a3da2762faa2c3700735606c4daab11c0;hb=7a7816e08468f05474b5cd246a945d82e15fbbfd;hp=f6a5f2c6b3197acc0c0275c06faf72e0888cb041;hpb=b9c7de686dc94f639ab913e51ea7b6b595a00683;p=ansible.git diff --git a/playbooks/roles/logcheck/tasks/main.yml b/playbooks/roles/logcheck/tasks/main.yml index f6a5f2c..db94486 100644 --- a/playbooks/roles/logcheck/tasks/main.yml +++ b/playbooks/roles/logcheck/tasks/main.yml @@ -26,7 +26,7 @@ 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 @@ -34,14 +34,14 @@ 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/