summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--roles/munin-master/files/lib/systemd/system/munin-cgi-graph.service1
-rw-r--r--roles/munin-master/tasks/main.yml5
2 files changed, 6 insertions, 0 deletions
diff --git a/roles/munin-master/files/lib/systemd/system/munin-cgi-graph.service b/roles/munin-master/files/lib/systemd/system/munin-cgi-graph.service
index 99aca7a..60ab444 100644
--- a/roles/munin-master/files/lib/systemd/system/munin-cgi-graph.service
+++ b/roles/munin-master/files/lib/systemd/system/munin-cgi-graph.service
@@ -17,6 +17,7 @@ ProtectHome=yes
ProtectSystem=full
ReadOnlyDirectories=/
ReadWriteDirectories=-/var/log/munin
+ReadWriteDirectories=-/var/lib/munin/cgi-tmp/munin-cgi-graph
[Install]
WantedBy=multi-user.target
diff --git a/roles/munin-master/tasks/main.yml b/roles/munin-master/tasks/main.yml
index 64e697e..bcdc509 100644
--- a/roles/munin-master/tasks/main.yml
+++ b/roles/munin-master/tasks/main.yml
@@ -19,6 +19,11 @@
- meta: flush_handlers
+- name: Create directory /var/lib/munin/cgi-tmp/munin-cgi-graph
+ file: path=/var/lib/munin/cgi-tmp/munin-cgi-graph
+ state=directory
+ owner=www-data group=www-data
+ mode=0755
- name: Configure munin
template: src=etc/munin/munin.conf.j2