add 127.0.0.1 to munin node to see it works or not
This commit is contained in:
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user