apache: cleanup log2mail tasks
This commit is contained in:
parent
a4b917152d
commit
17bdfc8fef
|
@ -13,6 +13,7 @@ apache_phpmyadmin_set: False
|
||||||
apache_phpmyadmin_suffix: ""
|
apache_phpmyadmin_suffix: ""
|
||||||
apache_serverstatus_suffix: ""
|
apache_serverstatus_suffix: ""
|
||||||
|
|
||||||
|
apache_log2mail_include: True
|
||||||
apache_munin_include: True
|
apache_munin_include: True
|
||||||
|
|
||||||
general_alert_email: "root@localhost"
|
general_alert_email: "root@localhost"
|
||||||
|
|
15
apache/tasks/log2mail.yml
Normal file
15
apache/tasks/log2mail.yml
Normal 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
|
|
@ -139,19 +139,6 @@
|
||||||
- include: phpmyadmin.yml
|
- include: phpmyadmin.yml
|
||||||
when: apache_phpmyadmin_set and _default_index.stat.exists
|
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:
|
# - block:
|
||||||
# - name: generate random string for serverstatus suffix
|
# - name: generate random string for serverstatus suffix
|
||||||
|
@ -170,5 +157,8 @@
|
||||||
# regexp: '__SERVERSTATUS_SUFFIX__'
|
# regexp: '__SERVERSTATUS_SUFFIX__'
|
||||||
# replace: "{{ apache_serverstatus_suffix }}"
|
# replace: "{{ apache_serverstatus_suffix }}"
|
||||||
|
|
||||||
|
- include: log2mail.yml
|
||||||
|
when: apache_log2mail_include
|
||||||
|
|
||||||
- include: munin.yml
|
- include: munin.yml
|
||||||
when: apache_munin_include
|
when: apache_munin_include
|
||||||
|
|
Loading…
Reference in a new issue