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:
parent
6de6c5f181
commit
8ec36dd685
@ -2,3 +2,8 @@
|
|||||||
service:
|
service:
|
||||||
name: apache2
|
name: apache2
|
||||||
state: restarted
|
state: restarted
|
||||||
|
|
||||||
|
- name: reload apache2
|
||||||
|
service:
|
||||||
|
name: apache2
|
||||||
|
state: reloaded
|
||||||
|
@ -141,6 +141,8 @@
|
|||||||
template:
|
template:
|
||||||
src: mirror.vhost.j2
|
src: mirror.vhost.j2
|
||||||
dest: /etc/apache2/sites-available/mirror.conf
|
dest: /etc/apache2/sites-available/mirror.conf
|
||||||
|
notify:
|
||||||
|
- reload apache2
|
||||||
|
|
||||||
- name: Make sure default site disabled
|
- name: Make sure default site disabled
|
||||||
command: a2dissite 000-default.conf
|
command: a2dissite 000-default.conf
|
||||||
|
Loading…
Reference in New Issue
Block a user