1
0
Fork 0
mirror of https://github.com/iiab/iiab.git synced 2025-02-13 11:42:08 +00:00
iiab/roles/munin/tasks/apache.yml
2020-01-29 09:52:27 -05:00

12 lines
393 B
YAML

- name: Enable http://box/munin via Apache
command: a2ensite munin24.conf
when: munin_enabled | bool
- name: Disable http://box/munin via Apache
command: a2dissite munin24.conf
when: not munin_enabled
- name: Restart '{{ apache_service }}' systemd service
systemd:
name: "{{ apache_service }}" # apache2 or httpd, as set in /opt/iiab/iiab/vars/<OS>.yml
state: restarted