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