Add handler for apache reload
This commit is contained in:
parent
b2a15afaee
commit
af787b9254
2 changed files with 7 additions and 1 deletions
|
@ -5,3 +5,9 @@
|
||||||
name: apache2
|
name: apache2
|
||||||
state: restarted
|
state: restarted
|
||||||
enabled: true
|
enabled: true
|
||||||
|
|
||||||
|
- name: Reload apache2 service
|
||||||
|
become: true
|
||||||
|
systemd:
|
||||||
|
name: apache2
|
||||||
|
state: reloaded
|
||||||
|
|
|
@ -22,7 +22,7 @@
|
||||||
become: true
|
become: true
|
||||||
command: a2dissite 000-default.conf
|
command: a2dissite 000-default.conf
|
||||||
when: enabled_default_vhost.stat.exists
|
when: enabled_default_vhost.stat.exists
|
||||||
notify: Restart apache2 service
|
notify: Reload apache2 service
|
||||||
|
|
||||||
- name: Remove default vHost conf files
|
- name: Remove default vHost conf files
|
||||||
become: true
|
become: true
|
||||||
|
|
Loading…
Reference in a new issue