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
|
#Apache Configuration
|
||||||
- name: Install LAMP Packages
|
- name: Install LAMP Packages
|
||||||
apt:
|
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
|
state: present
|
||||||
|
|
||||||
- name: Make sure pymysql is present
|
- name: Make sure pymysql is present
|
||||||
@@ -76,6 +76,19 @@
|
|||||||
port: "{{ http_port }}"
|
port: "{{ http_port }}"
|
||||||
proto: tcp
|
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
|
- name : configure docker-compose
|
||||||
copy:
|
copy:
|
||||||
|
|||||||
Reference in New Issue
Block a user