30 lines
773 B
YAML
30 lines
773 B
YAML
|
---
|
||
|
- name: "monitoring | Aktiviere Munin-Plugin"
|
||
|
file:
|
||
|
src: "/usr/share/munin/plugins/nginx_{{ item }}"
|
||
|
dest: "/etc/munin/plugins/nginx_{{ item }}"
|
||
|
state: link
|
||
|
loop:
|
||
|
- request
|
||
|
- status
|
||
|
notify: restart munin-node
|
||
|
|
||
|
- name: "monitoring | Kopiere Datei für lokale Statusausgabe"
|
||
|
template:
|
||
|
src: local-statistics.j2
|
||
|
dest: /etc/nginx/sites-available/local-statistics
|
||
|
notify: reload nginx
|
||
|
|
||
|
- name: "monitoring | Aktiviere Lokale Status-Ausgabe"
|
||
|
file:
|
||
|
src: /etc/nginx/sites-available/local-statistics
|
||
|
dest: /etc/nginx/sites-enabled/local-statistics
|
||
|
state: link
|
||
|
notify: reload nginx
|
||
|
|
||
|
- name: "monitoring | Kopiere Monit-Überwachung"
|
||
|
template:
|
||
|
src: monit.j2
|
||
|
dest: /etc/monit/conf-enabled/nginx
|
||
|
notify: reload monit
|