From 76d11b9cb2d73b3c11d4bde1a5f7cccb5eb8c1b0 Mon Sep 17 00:00:00 2001 From: Michael Grote Date: Mon, 12 Aug 2024 13:56:10 +0200 Subject: [PATCH] ff --- .../mgrote_munin_server/{handlers.yml => handlers}/main.yml | 2 +- roles/mgrote_munin_server/tasks/main.yml | 5 ++++- roles/mgrote_munin_server/templates/apache.conf | 2 +- 3 files changed, 6 insertions(+), 3 deletions(-) rename roles/mgrote_munin_server/{handlers.yml => handlers}/main.yml (82%) diff --git a/roles/mgrote_munin_server/handlers.yml/main.yml b/roles/mgrote_munin_server/handlers/main.yml similarity index 82% rename from roles/mgrote_munin_server/handlers.yml/main.yml rename to roles/mgrote_munin_server/handlers/main.yml index cae5ef07..05b5d426 100644 --- a/roles/mgrote_munin_server/handlers.yml/main.yml +++ b/roles/mgrote_munin_server/handlers/main.yml @@ -1,5 +1,5 @@ --- -- name: "restart_apache2" +- name: "restart apache2" become: true ansible.builtin.systemd: name: apache2 diff --git a/roles/mgrote_munin_server/tasks/main.yml b/roles/mgrote_munin_server/tasks/main.yml index 2e68f7f1..fb91661f 100644 --- a/roles/mgrote_munin_server/tasks/main.yml +++ b/roles/mgrote_munin_server/tasks/main.yml @@ -18,7 +18,7 @@ ansible.builtin.template: src: apache.conf dest: /etc/apache2/sites-available/000-default.conf - #notify: "restart_apache2" TODO + notify: "restart apache2" # TODO validate: apachectl -S - name: Enable fgcid @@ -99,3 +99,6 @@ owner: munin group: munin when: not placeholder.stat.exists + + +# url ohne /munin TODO diff --git a/roles/mgrote_munin_server/templates/apache.conf b/roles/mgrote_munin_server/templates/apache.conf index efae85dd..1d71bcf6 100644 --- a/roles/mgrote_munin_server/templates/apache.conf +++ b/roles/mgrote_munin_server/templates/apache.conf @@ -1,4 +1,4 @@ -Alias / /var/cache/munin/www +Alias /munin /var/cache/munin/www Require all granted Options None