From 7a6c6ed8881ceeab36731ec0437b892294a2ed51 Mon Sep 17 00:00:00 2001 From: Michael Grote Date: Mon, 12 Aug 2024 14:02:02 +0200 Subject: [PATCH] ff --- roles/mgrote_munin_server/tasks/main.yml | 3 ++- roles/mgrote_munin_server/templates/apache.conf | 1 + 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/roles/mgrote_munin_server/tasks/main.yml b/roles/mgrote_munin_server/tasks/main.yml index fb91661f..4644c91d 100644 --- a/roles/mgrote_munin_server/tasks/main.yml +++ b/roles/mgrote_munin_server/tasks/main.yml @@ -18,8 +18,9 @@ ansible.builtin.template: src: apache.conf dest: /etc/apache2/sites-available/000-default.conf + validate: apachectl -S notify: "restart apache2" - # TODO validate: apachectl -S + - name: Enable fgcid community.general.apache2_module: diff --git a/roles/mgrote_munin_server/templates/apache.conf b/roles/mgrote_munin_server/templates/apache.conf index 1d71bcf6..8d966c64 100644 --- a/roles/mgrote_munin_server/templates/apache.conf +++ b/roles/mgrote_munin_server/templates/apache.conf @@ -1,3 +1,4 @@ +ServerName {{ ansible_fqdn }} Alias /munin /var/cache/munin/www Require all granted