Skip to content
Snippets Groups Projects
Commit c5fcd32d authored by Jörg Sachse's avatar Jörg Sachse
Browse files

refactor: restart Apache by flushing handlers instead of registering a...

refactor: restart Apache by flushing handlers instead of registering a variable and checking for changed status
parent 607adac5
No related branches found
No related tags found
No related merge requests found
......@@ -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:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment