2022-06-05 14:59:06 +02:00
|
|
|
---
|
|
|
|
- name: "monitoring | Aktiviere Apache-Module"
|
|
|
|
apache2_module:
|
|
|
|
name: status
|
|
|
|
state: present
|
|
|
|
notify: reload apache2
|
|
|
|
|
|
|
|
- name: "monitoring | Kopiere Konfigurationsdatei"
|
|
|
|
copy:
|
|
|
|
src: server-status.conf
|
|
|
|
dest: /etc/apache2/sites-available/server-status.conf
|
|
|
|
|
|
|
|
- name: "monitoring | Aktiviere Seitenkonfiguration für Localhost"
|
|
|
|
file:
|
|
|
|
src: /etc/apache2/sites-available/server-status.conf
|
|
|
|
dest: /etc/apache2/sites-enabled/server-status.conf
|
|
|
|
state: link
|
|
|
|
notify: reload apache2
|
|
|
|
|
|
|
|
- name: "monitoring | Kopiere Munin-Konfiguration"
|
|
|
|
template:
|
|
|
|
src: munin.j2
|
|
|
|
dest: /etc/munin/plugin-conf.d/yyy-apache
|
2022-06-28 20:37:26 +02:00
|
|
|
notify: restart munin-node
|
2022-06-05 14:59:06 +02:00
|
|
|
|
|
|
|
- name: "monitoring | Aktiviere Munin-Plugins"
|
|
|
|
file:
|
|
|
|
src: "/usr/share/munin/plugins/{{ item }}"
|
|
|
|
dest: "/etc/munin/plugins/{{ item }}"
|
|
|
|
state: link
|
|
|
|
loop:
|
|
|
|
- apache_accesses
|
|
|
|
- apache_processes
|
|
|
|
- apache_volume
|
|
|
|
notify: restart munin-node
|