prometheus et munin fonctionnent dans le compose
This commit is contained in:
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user