diff --git a/tasks/configure_apache.yml b/tasks/configure_apache.yml index 5a2a07d456340c9f10c4b0d54c6dfbc7d6083942..946239d38a1c7d23d5b89ef03b40905a61c02210 100644 --- a/tasks/configure_apache.yml +++ b/tasks/configure_apache.yml @@ -7,12 +7,9 @@ loop: - "cgid" - "ssl" - register: a2enmod -- name: restart apache immediately to make sure mod_ssl is running before configuring TLS. Just notifying the handler doesn't suffice. - ansible.builtin.systemd: - unit: "apache2" - state: restarted - when: a2enmod.changed # noqa no-handler + notify: restart apache +- name: Restart apache immediately to make sure mod_ssl is running before configuring TLS. + ansible.builtin.meta: flush_handlers - name: Apache-Konfigurationsdateien einspielen (copied) ansible.builtin.copy: