Reload apache after deploying its configuration

Signed-off-by: Yohann D'ANELLO <ynerant@crans.org>
certbot_on_virtu
Yohann D'ANELLO 2021-02-22 14:10:44 +01:00
parent 408c857f81
commit 82818b732f
Signed by: _ynerant
GPG Key ID: 3A75C55819C8CF85
2 changed files with 8 additions and 0 deletions

View File

@ -0,0 +1,5 @@
---
- name: Reload apache
systemd:
name: apache2
state: reloaded

View File

@ -82,6 +82,7 @@
- rewrite - rewrite
- socache_shmcb - socache_shmcb
- userdir - userdir
notify: Reload apache
- name: Copy apache configuration - name: Copy apache configuration
template: template:
@ -96,6 +97,7 @@
- "sites-available/000-perso-vhosts.conf" - "sites-available/000-perso-vhosts.conf"
- "sites-available/001-perso.conf" - "sites-available/001-perso.conf"
- "suexec/www-data" - "suexec/www-data"
notify: Reload apache
- name: Enable apache sites - name: Enable apache sites
file: file:
@ -108,3 +110,4 @@
loop: loop:
- "000-perso-vhosts.conf" - "000-perso-vhosts.conf"
- "001-perso.conf" - "001-perso.conf"
notify: Reload apache