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
changes/86/850686/3
Jeremy Stanley 7 months ago
parent 6de6c5f181
commit 8ec36dd685

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

@ -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

Loading…
Cancel
Save