Procházet zdrojové kódy

Send logwatch messages to admin_email

Luke Cyca před 10 roky
rodič
revize
310d28ef39
1 změnil soubory, kde provedl 2 přidání a 2 odebrání
  1. 2
    2
      roles/monitoring/tasks/logwatch.yml

+ 2
- 2
roles/monitoring/tasks/logwatch.yml Zobrazit soubor

@@ -1,5 +1,5 @@
1 1
 - name: Install logwatch
2 2
   apt: pkg=logwatch state=installed
3 3
 
4
-- name: Configure logwatch to email {{ main_user_name }}@{{ domain }} daily
5
-  action: lineinfile dest=/etc/cron.daily/00logwatch regexp="^/usr/sbin/logwatch" line="/usr/sbin/logwatch --output mail --mailto {{ main_user_name }}@{{ domain }} --detail high" state=present create=yes
4
+- name: Configure logwatch to email {{ admin_email }} daily
5
+  action: lineinfile dest=/etc/cron.daily/00logwatch regexp="^/usr/sbin/logwatch" line="/usr/sbin/logwatch --output mail --mailto {{ admin_email }} --detail high" state=present create=yes

Loading…
Zrušit
Uložit