From 7a057a55342674b59b58ebf7249ebc93a6f47542 Mon Sep 17 00:00:00 2001 From: Michael Grote Date: Mon, 12 Aug 2024 12:47:43 +0200 Subject: [PATCH] ff --- roles/mgrote_munin_server/tasks/main.yml | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/roles/mgrote_munin_server/tasks/main.yml b/roles/mgrote_munin_server/tasks/main.yml index 8eb42f37..59115cec 100644 --- a/roles/mgrote_munin_server/tasks/main.yml +++ b/roles/mgrote_munin_server/tasks/main.yml @@ -5,9 +5,15 @@ name: "{{ munin_packages }}" state: present +- name: Copy apache24.conf + ansible.builtin.copy: + src: /etc/munin/apache24.conf + dest: /etc/apache2/sites-available/000-default.conf + remote_src: yes + + -RUN (cp /etc/munin/apache24.conf /etc/apache2/sites-available/000-default.conf) && \ (sed -i 's/^Alias.*/Alias \/ \/var\/cache\/munin\/www\//g' /etc/apache2/sites-available/000-default.conf) && \ (sed -i 's/Allow from .*/Satisfy Any/g' /etc/apache2/sites-available/000-default.conf) && \ (sed -i 's/Order allow,deny.*/Allow from all/g' /etc/apache2/sites-available/000-default.conf) && \