2017-08-12 18:51:15 +02:00
|
|
|
---
|
|
|
|
|
2017-10-07 11:15:45 +02:00
|
|
|
- name: "Install munin-node and core plugins packages"
|
2017-08-12 18:51:15 +02:00
|
|
|
apt:
|
2019-12-31 15:25:10 +01:00
|
|
|
name:
|
|
|
|
- munin-node
|
|
|
|
- munin-plugins-core
|
2018-05-18 09:33:25 +02:00
|
|
|
state: present
|
2017-10-07 11:15:45 +02:00
|
|
|
tags:
|
|
|
|
- apache
|
|
|
|
- munin
|
2017-08-12 18:51:15 +02:00
|
|
|
|
2017-10-07 11:15:45 +02:00
|
|
|
- name: "Enable Munin plugins"
|
2017-08-12 18:51:15 +02:00
|
|
|
file:
|
|
|
|
src: "/usr/share/munin/plugins/{{ item }}"
|
|
|
|
dest: "/etc/munin/plugins/{{ item }}"
|
|
|
|
state: link
|
2021-05-04 14:18:40 +02:00
|
|
|
loop:
|
2017-10-07 11:15:45 +02:00
|
|
|
- apache_accesses
|
|
|
|
- apache_processes
|
|
|
|
- apache_volume
|
2017-08-22 06:30:04 +02:00
|
|
|
notify: restart munin-node
|
2017-08-12 18:51:15 +02:00
|
|
|
tags:
|
2017-10-07 11:15:45 +02:00
|
|
|
- apache
|
|
|
|
- munin
|
2017-10-06 15:42:45 +02:00
|
|
|
|
2017-10-07 11:15:45 +02:00
|
|
|
- name: "Install fcgi packages for Munin graphs"
|
2017-07-19 18:25:22 +02:00
|
|
|
apt:
|
2019-12-31 15:25:10 +01:00
|
|
|
name:
|
|
|
|
- libapache2-mod-fcgid
|
|
|
|
- libcgi-fast-perl
|
2018-05-18 09:33:25 +02:00
|
|
|
state: present
|
2017-07-19 18:25:22 +02:00
|
|
|
notify: reload apache
|
|
|
|
tags:
|
2017-10-07 11:15:45 +02:00
|
|
|
- apache
|
|
|
|
- munin
|
2017-07-19 18:25:22 +02:00
|
|
|
|
2017-10-07 11:15:45 +02:00
|
|
|
- name: "Enable libapache2-mod-fcgid"
|
2017-07-20 09:38:05 +02:00
|
|
|
command: a2enmod fcgid
|
2017-07-20 09:40:45 +02:00
|
|
|
register: cmd_enable_fcgid
|
|
|
|
changed_when: "'Module fcgid already enabled' not in cmd_enable_fcgid.stdout"
|
2017-07-20 09:38:05 +02:00
|
|
|
notify: restart apache
|
|
|
|
tags:
|
2017-10-07 11:15:45 +02:00
|
|
|
- apache
|
|
|
|
- munin
|
2017-07-20 09:38:05 +02:00
|
|
|
|
2017-10-07 11:15:45 +02:00
|
|
|
- name: "Apache has access to /var/log/munin/"
|
2017-07-20 09:33:22 +02:00
|
|
|
file:
|
2017-07-20 09:38:39 +02:00
|
|
|
path: /var/log/munin/
|
2017-07-20 09:33:22 +02:00
|
|
|
group: www-data
|
2017-07-20 09:38:39 +02:00
|
|
|
tags:
|
2017-10-07 11:15:45 +02:00
|
|
|
- apache
|
|
|
|
- munin
|