diff --git a/roles/mgrote_munin_server/handlers.yml/main.yml b/roles/mgrote_munin_server/handlers.yml/main.yml new file mode 100644 index 00000000..7e42c2f4 --- /dev/null +++ b/roles/mgrote_munin_server/handlers.yml/main.yml @@ -0,0 +1,9 @@ +--- +- name: restart apache2 + become: true + ansible.builtin.systemd: + name: apache2 + enabled: true + masked: false + state: restarted +... diff --git a/roles/mgrote_munin_server/tasks/main.yml b/roles/mgrote_munin_server/tasks/main.yml index d2208f48..505a38e3 100644 --- a/roles/mgrote_munin_server/tasks/main.yml +++ b/roles/mgrote_munin_server/tasks/main.yml @@ -18,6 +18,7 @@ ansible.builtin.template: src: apache.conf dest: /etc/apache2/sites-available/000-default.conf + notify: restart apache2 - name: Enable fgcid community.general.apache2_module: