ansible-roles/haproxy/tasks/munin.yml

30 lines
584 B
YAML
Raw Normal View History

2018-02-13 16:35:55 +01:00
---
2018-02-14 14:10:00 +01:00
- name: Install Munin plugin and dependencies
apt:
2018-02-14 14:10:00 +01:00
name: "{{ item }}"
state: present
2018-02-14 14:10:00 +01:00
with_items:
- munin-plugins-extra
- liblwp-useragent-determined-perl
tags:
- haproxy
2018-02-13 16:35:55 +01:00
- name: Enable Munin Haproxy plugins
file:
src: /usr/share/munin/plugins/haproxy_ng
dest: /etc/munin/plugins/haproxy_ng
force: yes
2018-02-13 16:35:55 +01:00
state: link
notify: restart munin-node
tags:
- haproxy
- name: Copy Munin Haproxy config
template:
src: munin.conf.j2
dest: /etc/munin/plugin-conf.d/haproxy
mode: "0644"
notify: restart munin-node
tags:
- haproxy