2017-08-12 18:51:15 +02:00
|
|
|
---
|
|
|
|
|
|
|
|
- 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
|
2017-08-22 06:30:04 +02:00
|
|
|
notify: restart munin-node
|
2017-08-12 18:51:15 +02:00
|
|
|
tags:
|
|
|
|
- apache
|
|
|
|
- munin
|
2017-10-06 15:42:45 +02:00
|
|
|
|
|
|
|
---
|
|
|
|
|
2017-07-19 18:25:22 +02:00
|
|
|
- name: install packages for Apache and Munin
|
|
|
|
apt:
|
2017-07-20 09:33:22 +02:00
|
|
|
name: "{{ item }}"
|
2017-07-19 18:25:22 +02:00
|
|
|
state: installed
|
2017-07-20 09:33:22 +02:00
|
|
|
with_items:
|
|
|
|
- libapache2-mod-fcgid
|
|
|
|
- libcgi-fast-perl
|
2017-07-19 18:25:22 +02:00
|
|
|
notify: reload apache
|
|
|
|
tags:
|
|
|
|
- apache
|
|
|
|
- munin
|
|
|
|
|
2017-07-20 09:38:05 +02:00
|
|
|
- name: be sure to enable libapache2-mod-fcgid
|
|
|
|
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:
|
|
|
|
- apache
|
|
|
|
- munin
|
|
|
|
|
2017-07-20 09:33:22 +02:00
|
|
|
- name: change group for /var/log/munin/
|
|
|
|
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:
|
|
|
|
- apache
|
|
|
|
- munin
|
2017-07-20 09:33:22 +02:00
|
|
|
|
2017-07-19 18:25:22 +02:00
|
|
|
- name: install munin plugins
|
|
|
|
file:
|
|
|
|
src: "/etc/munin/plugins/{{ item }}"
|
|
|
|
dest: "/usr/share/munin/plugins/{{ item }}"
|
|
|
|
state: link
|
|
|
|
with_items:
|
|
|
|
- apache_accesses
|
|
|
|
- apache_processes
|
|
|
|
- apache_volume
|
|
|
|
notify: restart munin-node
|
|
|
|
tags:
|
|
|
|
- apache
|
|
|
|
- munin
|