ansible-roles/apache/tasks/munin.yml

41 lines
798 B
YAML
Raw Normal View History

---
- name: install packages for Apache and Munin
apt:
name: "{{ item }}"
state: installed
with_items:
- libapache2-mod-fcgid
- libcgi-fast-perl
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
register: cmd_disable_fcgid
changed_when: "'Module fcgid already enabled' not in cmd_disable_fcgid.stdout"
notify: restart apache
tags:
- apache
- munin
- name: change group for /var/log/munin/
file:
group: www-data
- 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