diff --git a/ansible/playbook.yml b/ansible/playbook.yml index ebb7569..02d9e71 100755 --- a/ansible/playbook.yml +++ b/ansible/playbook.yml @@ -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: