ansible-roles/haproxy/tasks/munin.yml
Jérémy Lecour 00fe225a3c
All checks were successful
Ansible Lint |Total|New|Outstanding|Fixed|Trend |:-:|:-:|:-:|:-:|:-: |2615|7|2608|177|:+1: Reference build: <a href="https://jenkins.evolix.org/job/gitea/job/ansible-roles/job/unstable/278//ansiblelint">Evolix » ansible-roles » unstable #278</a>
gitea/ansible-roles/pipeline/head This commit looks good
force: [yes,no] → force [true,false]
2023-06-28 13:25:30 +02:00

29 lines
614 B
YAML

---
- name: Install Munin plugin and dependencies
ansible.builtin.apt:
name:
- munin-plugins-extra
- liblwp-useragent-determined-perl
state: present
tags:
- haproxy
- name: Enable Munin Haproxy plugins
ansible.builtin.file:
src: /usr/share/munin/plugins/haproxy_ng
dest: /etc/munin/plugins/haproxy_ng
force: true
state: link
notify: restart munin-node
tags:
- haproxy
- name: Copy Munin Haproxy config
ansible.builtin.template:
src: munin.conf.j2
dest: /etc/munin/plugin-conf.d/haproxy
mode: "0644"
notify: restart munin-node
tags:
- haproxy