diff --git a/group_vars/docker.yml b/group_vars/docker.yml index 7215b54b..f9d624ef 100644 --- a/group_vars/docker.yml +++ b/group_vars/docker.yml @@ -30,6 +30,9 @@ to_port: 4949 protocol: tcp comment: 'munin' - from_ip: 192.168.0.0/16 ### geerlingguy.munin-node - munin_node_allowed_cidrs: [192.168.0.0/16] # weil der munin-server aus einem anderen subnet zugreift + munin_node_allowed_cidrs: [0.0.0.0/0] # weil der munin-server aus einem anderen subnet zugreift + munin_node_allowed_ips: # weil der munin-server aus einem anderen subnet zugreift + - '^127\.0\.0\.1$' + - '^::1$' + - ^0\.0\.0\.0$ diff --git a/roles/mgrote.munin-node/tasks/main.yml b/roles/mgrote.munin-node/tasks/main.yml index c1c138bb..75919361 100644 --- a/roles/mgrote.munin-node/tasks/main.yml +++ b/roles/mgrote.munin-node/tasks/main.yml @@ -5,6 +5,15 @@ state: present register: install + - name: create directories + file: + path: "{{ item }}" + state: directory + loop: + - /etc/munin + - /etc/munin/plugin-conf.d + - /etc/munin/plugins + - name: Copy munin-node configuration. template: src: munin-node.conf.j2