diff --git a/roles/munin/tasks/apache.yml b/roles/munin/tasks/apache.yml new file mode 100644 index 000000000..a83b9dd81 --- /dev/null +++ b/roles/munin/tasks/apache.yml @@ -0,0 +1,12 @@ +- name: Enable http://box/munin via Apache + command: a2ensite munin24.conf + when: munin_enabled + +- name: Disable http://box/munin via Apache + command: a2dissite munin24.conf + when: not munin_enabled + +- name: Restart Apache systemd service ({{ apache_service }}) + systemd: + name: "{{ apache_service }}" # apache2 or httpd, as set in /opt/iiab/iiab/vars/.yml + state: restarted