From 83a36574887436c9b3a5c4d2b757ff52fb805a2f Mon Sep 17 00:00:00 2001 From: Michael Grote Date: Wed, 21 Aug 2024 18:01:49 +0200 Subject: [PATCH] d --- group_vars/munin.yml | 2 +- roles/mgrote_munin_server/tasks/main.yml | 22 +++++++++++++++++++++- 2 files changed, 22 insertions(+), 2 deletions(-) diff --git a/group_vars/munin.yml b/group_vars/munin.yml index 83388801..6fbfc29d 100644 --- a/group_vars/munin.yml +++ b/group_vars/munin.yml @@ -42,7 +42,7 @@ munin_node_bind_port: "4949" munin_node_allowed_cidrs: [127.0.0.1] ### mgrote_munin_master -munin_mode: cron # or cgi +munin_mode: cgi # or cron munin_mail_user: munin@mgrote.net munin_mail_server: "{{ postfix_smtp_server }}" munin_mail_port: "{{ 1025 }}" diff --git a/roles/mgrote_munin_server/tasks/main.yml b/roles/mgrote_munin_server/tasks/main.yml index 0ae1e90a..5577990a 100644 --- a/roles/mgrote_munin_server/tasks/main.yml +++ b/roles/mgrote_munin_server/tasks/main.yml @@ -12,7 +12,27 @@ mode: '0755' owner: munin group: munin - loop: "{{ munin_dirs }}" + loop: + - name: /var/run/munin + mode: '0755' + owner: root + group: root + - name: /etc/munin/plugins + mode: '0755' + owner: root + group: root + - name: /var/cache/munin/www + mode: '0755' + owner: root + group: root + - name: /var/lib/munin + mode: '0755' + owner: root + group: root + - name: /var/cache/munin + mode: '0755' + owner: root + group: root - name: Ensure permissions are set ansible.builtin.file: