prometheus et munin fonctionnent dans le compose

This commit is contained in:
Alexandre Chevalier
2026-02-14 20:20:17 +01:00
parent d6f422ea17
commit bf241435be
3 changed files with 121 additions and 106 deletions

View File

@@ -53,19 +53,27 @@
port: "{{ http_port }}"
proto: tcp
- name: Install munin
apt:
name:
- munin-node
state: present
# TODO : d'ou est ajoute le fichier /etc/muning/munin-node.conf ?
# Munin Configuration
#https://stackoverflow.com/questions/77941169/ansible-add-line-update-etc-hosts-when-outdated
# - name: Install Munin Node
# ansible.builtin.lineinfile:
# path: /etc/munin/munin-node.conf
# regexp: '^allow'
# line: "allow ^127\\.0\\.0\\.1$"
#
# - name: Restart munin-node
# systemd:
# name: munin-node
# state: restarted
# enabled: yes
- name: Install Munin Node
ansible.builtin.lineinfile:
path: /etc/munin/munin-node.conf
regexp: '^allow'
line: "allow ^127\\.0\\.0\\.1$"
- name: Restart munin-node
systemd:
name: munin-node
state: restarted
enabled: yes
- name: Install Docker plugins
apt: