apache: cleanup munin tasks
This commit is contained in:
parent
69ed3ecf05
commit
a4b917152d
|
@ -13,5 +13,7 @@ apache_phpmyadmin_set: False
|
||||||
apache_phpmyadmin_suffix: ""
|
apache_phpmyadmin_suffix: ""
|
||||||
apache_serverstatus_suffix: ""
|
apache_serverstatus_suffix: ""
|
||||||
|
|
||||||
|
apache_munin_include: True
|
||||||
|
|
||||||
general_alert_email: "root@localhost"
|
general_alert_email: "root@localhost"
|
||||||
log2mail_alert_email: Null
|
log2mail_alert_email: Null
|
||||||
|
|
|
@ -8,3 +8,8 @@
|
||||||
service:
|
service:
|
||||||
name: apache2
|
name: apache2
|
||||||
state: reloaded
|
state: reloaded
|
||||||
|
|
||||||
|
- name: reload munin-node
|
||||||
|
service:
|
||||||
|
name: munin-node
|
||||||
|
state: reloaded
|
||||||
|
|
|
@ -169,3 +169,6 @@
|
||||||
# dest: /var/www/index.html
|
# dest: /var/www/index.html
|
||||||
# regexp: '__SERVERSTATUS_SUFFIX__'
|
# regexp: '__SERVERSTATUS_SUFFIX__'
|
||||||
# replace: "{{ apache_serverstatus_suffix }}"
|
# replace: "{{ apache_serverstatus_suffix }}"
|
||||||
|
|
||||||
|
- include: munin.yml
|
||||||
|
when: apache_munin_include
|
||||||
|
|
23
apache/tasks/munin.yml
Normal file
23
apache/tasks/munin.yml
Normal file
|
@ -0,0 +1,23 @@
|
||||||
|
---
|
||||||
|
|
||||||
|
- name: munin-node and core plugins are installed
|
||||||
|
apt:
|
||||||
|
name: "{{ item }}"
|
||||||
|
state: installed
|
||||||
|
with_items:
|
||||||
|
- munin-node
|
||||||
|
- munin-plugins-core
|
||||||
|
|
||||||
|
- name: enable munin plugins
|
||||||
|
file:
|
||||||
|
src: "/usr/share/munin/plugins/{{ item }}"
|
||||||
|
dest: "/etc/munin/plugins/{{ item }}"
|
||||||
|
state: link
|
||||||
|
with_items:
|
||||||
|
- apache_accesses
|
||||||
|
- apache_processes
|
||||||
|
- apache_volume
|
||||||
|
notify: restart munin-node
|
||||||
|
tags:
|
||||||
|
- apache
|
||||||
|
- munin
|
Loading…
Reference in a new issue