From 82818b732fb951d3e61aa7d278d8b71b4c63e1af Mon Sep 17 00:00:00 2001 From: Yohann D'ANELLO <ynerant@crans.org> Date: Mon, 22 Feb 2021 14:10:44 +0100 Subject: [PATCH] Reload apache after deploying its configuration Signed-off-by: Yohann D'ANELLO <ynerant@crans.org> --- roles/zamok-tools/handlers/main.yml | 5 +++++ roles/zamok-tools/tasks/main.yml | 3 +++ 2 files changed, 8 insertions(+) create mode 100644 roles/zamok-tools/handlers/main.yml diff --git a/roles/zamok-tools/handlers/main.yml b/roles/zamok-tools/handlers/main.yml new file mode 100644 index 00000000..30eacce9 --- /dev/null +++ b/roles/zamok-tools/handlers/main.yml @@ -0,0 +1,5 @@ +--- +- name: Reload apache + systemd: + name: apache2 + state: reloaded diff --git a/roles/zamok-tools/tasks/main.yml b/roles/zamok-tools/tasks/main.yml index 5e37f0b0..41bb2ce4 100644 --- a/roles/zamok-tools/tasks/main.yml +++ b/roles/zamok-tools/tasks/main.yml @@ -82,6 +82,7 @@ - rewrite - socache_shmcb - userdir + notify: Reload apache - name: Copy apache configuration template: @@ -96,6 +97,7 @@ - "sites-available/000-perso-vhosts.conf" - "sites-available/001-perso.conf" - "suexec/www-data" + notify: Reload apache - name: Enable apache sites file: @@ -108,3 +110,4 @@ loop: - "000-perso-vhosts.conf" - "001-perso.conf" + notify: Reload apache -- GitLab