diff --git a/group_vars/munin.yml b/group_vars/munin.yml index de862ce2..8ebf65e3 100644 --- a/group_vars/munin.yml +++ b/group_vars/munin.yml @@ -68,10 +68,5 @@ munin_hosts: address: ldap.mgrote.net extra: ["use_node_name yes"] - - -# notfications config # TODO -# cgi? -# rrdcache -# rolle wieder aus image ausabuen +# Mail/Notifications? diff --git a/roles/mgrote_munin_server/tasks/main.yml b/roles/mgrote_munin_server/tasks/main.yml index 1f682cc8..0f5ecc99 100644 --- a/roles/mgrote_munin_server/tasks/main.yml +++ b/roles/mgrote_munin_server/tasks/main.yml @@ -19,6 +19,8 @@ path: /var/lib/munin/cgi-tmp mode: 'ugo+rw' state: directory + owner: munin + group: munin recurse: true - name: Template apache config @@ -49,13 +51,13 @@ notify: "restart munin" - name: Enable or disable the munin cron job. - lineinfile: + ansible.builtin.lineinfile: dest: /etc/cron.d/munin state: "{{ munin_cron_job }}" regexp: "^\\*/5 \\* \\* \\* \\*" line: "*/5 * * * * munin if [ -x /usr/bin/munin-cron ]; then /usr/bin/munin-cron; fi" create: true - mode: 0644 + mode: '0644' # TODO mail config? wie senden? # COPY munin_mail.conf /etc/munin/munin-conf.d/munin_mail.conf