X-Git-Url: https://git.phdru.name/?a=blobdiff_plain;f=playbooks%2Froles%2Flogcheck%2Ftasks%2Fmain.yml;h=5a5e2405c1df7ba4640a692cfe1f9ac334d84f9a;hb=b013b01840d3ad7d0ed1041a54fc12c837f38e2c;hp=f6a5f2c6b3197acc0c0275c06faf72e0888cb041;hpb=f070a0281012512248a14faec5e679eab1b5cc1d;p=ansible.git diff --git a/playbooks/roles/logcheck/tasks/main.yml b/playbooks/roles/logcheck/tasks/main.yml index f6a5f2c..5a5e240 100644 --- a/playbooks/roles/logcheck/tasks/main.yml +++ b/playbooks/roles/logcheck/tasks/main.yml @@ -26,22 +26,13 @@ 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 - regexp: '^SENDMAILTO="root"$' - line: 'SENDMAILTO="root"' - insertafter: '^SENDMAILTO="logcheck"$' - -- name: Configure logcheck - not send to logcheck - become: true - lineinfile: - path: /etc/logcheck/logcheck.conf - regexp: '^SENDMAILTO="logcheck"$' - state: absent + path: /etc/aliases + line: 'logcheck: root' -- name: Update logcheck ignore patterns +- name: Update logcheck ignore files become: true copy: src: ignore.d/