apache: cleanup log2mail tasks

This commit is contained in:
Jérémy Lecour 2017-08-12 12:51:28 -04:00 committed by Jérémy Lecour
parent a4b917152d
commit 17bdfc8fef
3 changed files with 19 additions and 13 deletions

View file

@ -13,6 +13,7 @@ apache_phpmyadmin_set: False
apache_phpmyadmin_suffix: ""
apache_serverstatus_suffix: ""
apache_log2mail_include: True
apache_munin_include: True
general_alert_email: "root@localhost"

15
apache/tasks/log2mail.yml Normal file
View file

@ -0,0 +1,15 @@
---
- name: log2mail is installed
apt:
name: log2mail
state: present
- name: Add log2mail config for Apache segfaults
template:
src: log2mail-apache.j2
dest: "/etc/log2mail/config/apache"
owner: log2mail
group: adm
mode: "0644"
force: no

View file

@ -139,19 +139,6 @@
- include: phpmyadmin.yml
when: apache_phpmyadmin_set and _default_index.stat.exists
- name: Check if log2mail is installed
apt:
name: log2mail
state: present
- name: Add log2mail config for Apache segfaults
template:
src: log2mail-apache.j2
dest: "/etc/log2mail/config/apache"
owner: log2mail
group: adm
mode: "0644"
force: no
# - block:
# - name: generate random string for serverstatus suffix
@ -170,5 +157,8 @@
# regexp: '__SERVERSTATUS_SUFFIX__'
# replace: "{{ apache_serverstatus_suffix }}"
- include: log2mail.yml
when: apache_log2mail_include
- include: munin.yml
when: apache_munin_include