ansible-roles/apache/tasks/munin.yml

55 lines
1.1 KiB
YAML
Raw Normal View History

2017-08-12 18:51:15 +02:00
---
- name: "Install munin-node and core plugins packages"
ansible.builtin.apt:
2019-12-31 15:25:10 +01:00
name:
- munin-node
- munin-plugins-core
state: present
tags:
- apache
- munin
2017-08-12 18:51:15 +02:00
- name: "Enable Munin plugins"
ansible.builtin.file:
2017-08-12 18:51:15 +02:00
src: "/usr/share/munin/plugins/{{ item }}"
dest: "/etc/munin/plugins/{{ item }}"
state: link
loop:
- apache_accesses
- apache_processes
- apache_volume
notify: restart munin-node
2017-08-12 18:51:15 +02:00
tags:
- apache
- munin
- name: "Install fcgi packages for Munin graphs"
ansible.builtin.apt:
2019-12-31 15:25:10 +01:00
name:
- libapache2-mod-fcgid
- libcgi-fast-perl
state: present
notify: reload apache
tags:
- apache
- munin
- name: "Enable libapache2-mod-fcgid"
ansible.builtin.command:
cmd: 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:38:05 +02:00
- name: "Apache has access to /var/log/munin/"
ansible.builtin.file:
2017-07-20 09:38:39 +02:00
path: /var/log/munin/
group: www-data
2017-07-20 09:38:39 +02:00
tags:
- apache
- munin