diff --git a/roles/mgrote_munin_server/handlers/main.yml b/roles/mgrote_munin_server/handlers/main.yml index 40bf2500..b45dc6cd 100644 --- a/roles/mgrote_munin_server/handlers/main.yml +++ b/roles/mgrote_munin_server/handlers/main.yml @@ -14,13 +14,4 @@ enabled: true masked: false state: restarted - -- name: "Ensure /var/lib/munin/cgi-tmp are set" - ansible.builtin.file: - path: /var/lib/munin/cgi-tmp - state: directory - mode: "0755" - owner: munin - group: www-data - recurse: true ... diff --git a/roles/mgrote_munin_server/tasks/main.yml b/roles/mgrote_munin_server/tasks/main.yml index 5fa231f4..293f53c8 100644 --- a/roles/mgrote_munin_server/tasks/main.yml +++ b/roles/mgrote_munin_server/tasks/main.yml @@ -45,7 +45,11 @@ owner: root group: root recurse: false - notify: "Ensure /var/lib/munin/cgi-tmp are set" + - name: /var/lib/munin/cgi-tmp # TODO, ist immer changed + mode: "0755" + owner: munin + group: www-data + recurse: true - name: Template apache config ansible.builtin.template: