add 127.0.0.1 to munin node to see it works or not

This commit is contained in:
tuanvu
2026-02-13 21:26:13 +01:00
parent d7ac18bb62
commit 0976663ea6

View File

@@ -16,7 +16,7 @@
#Apache Configuration
- name: Install LAMP Packages
apt:
name: [ 'apache2', 'python3-pip', 'mysql-server', 'php', 'php-mysql', 'libapache2-mod-php' ]
name: [ 'apache2', 'python3-pip', 'mysql-server', 'php', 'php-mysql', 'libapache2-mod-php', 'munin-node' ]
state: present
- name: Make sure pymysql is present
@@ -76,6 +76,19 @@
port: "{{ http_port }}"
proto: tcp
# 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 : configure docker-compose
copy: