From 1306feee208f1e60d67dd487f10d0a540f673874 Mon Sep 17 00:00:00 2001 From: A Holt Date: Thu, 23 Jan 2020 16:37:11 -0500 Subject: [PATCH] Create munin/tasks/apache.yml --- roles/munin/tasks/apache.yml | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100644 roles/munin/tasks/apache.yml 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