This commit is contained in:
Michael Grote 2024-08-12 12:47:43 +02:00
parent 6d3b3c14e7
commit 7a057a5534

View file

@ -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) && \