2018-02-13 16:35:55 +01:00
|
|
|
---
|
2018-02-14 14:10:00 +01:00
|
|
|
- name: Install Munin plugin and dependencies
|
2023-03-20 23:33:19 +01:00
|
|
|
ansible.builtin.apt:
|
2019-12-31 15:25:10 +01:00
|
|
|
name:
|
|
|
|
- munin-plugins-extra
|
|
|
|
- liblwp-useragent-determined-perl
|
2018-02-13 16:49:24 +01:00
|
|
|
state: present
|
|
|
|
tags:
|
|
|
|
- haproxy
|
|
|
|
|
2018-02-13 16:35:55 +01:00
|
|
|
- name: Enable Munin Haproxy plugins
|
2023-03-20 23:33:19 +01:00
|
|
|
ansible.builtin.file:
|
2018-02-13 16:35:55 +01:00
|
|
|
src: /usr/share/munin/plugins/haproxy_ng
|
|
|
|
dest: /etc/munin/plugins/haproxy_ng
|
2023-06-28 13:22:59 +02:00
|
|
|
force: true
|
2018-02-13 16:35:55 +01:00
|
|
|
state: link
|
|
|
|
notify: restart munin-node
|
|
|
|
tags:
|
|
|
|
- haproxy
|
|
|
|
|
|
|
|
- name: Copy Munin Haproxy config
|
2023-03-20 23:33:19 +01:00
|
|
|
ansible.builtin.template:
|
2018-02-13 16:35:55 +01:00
|
|
|
src: munin.conf.j2
|
|
|
|
dest: /etc/munin/plugin-conf.d/haproxy
|
|
|
|
mode: "0644"
|
|
|
|
notify: restart munin-node
|
|
|
|
tags:
|
|
|
|
- haproxy
|