Notify apache2 reload on updates to mirror vhost

Reflect changes to mirror vhost configs immediately in their running
Apache services by notifying a new reload handler.

Change-Id: Ib3c9560781116f94b0fdfc56dfa5df3a1af74113
This commit is contained in:
Jeremy Stanley 2022-07-21 19:27:34 +00:00
parent 6de6c5f181
commit 8ec36dd685
2 changed files with 8 additions and 1 deletions

View File

@ -1,4 +1,9 @@
- name: restart apache2
service:
name: apache2
state: restarted
state: restarted
- name: reload apache2
service:
name: apache2
state: reloaded

View File

@ -141,6 +141,8 @@
template:
src: mirror.vhost.j2
dest: /etc/apache2/sites-available/mirror.conf
notify:
- reload apache2
- name: Make sure default site disabled
command: a2dissite 000-default.conf