From 7bd6be69c7d1ae8c946f68b7fcb1e69fef0fad36 Mon Sep 17 00:00:00 2001 From: Alexander Barton Date: Thu, 12 Oct 2017 16:00:37 +0200 Subject: [PATCH 1/1] apache2: Add 'reload "apache2" (graceful)' handler --- roles/apache2/handlers/main.yml | 12 ++++++++++++ roles/piwik/tasks/main.yml | 4 ++-- 2 files changed, 14 insertions(+), 2 deletions(-) diff --git a/roles/apache2/handlers/main.yml b/roles/apache2/handlers/main.yml index 9af0902..6e20069 100644 --- a/roles/apache2/handlers/main.yml +++ b/roles/apache2/handlers/main.yml @@ -7,3 +7,15 @@ service: > name=apache2 state=restarted + +- name: reload "apache2" + tags: + - apache + service: > + name=apache2 + state=reloaded + +- name: reload "apache2" (graceful) + tags: + - apache + command: apache2ctl graceful diff --git a/roles/piwik/tasks/main.yml b/roles/piwik/tasks/main.yml index 6442168..ef58553 100644 --- a/roles/piwik/tasks/main.yml +++ b/roles/piwik/tasks/main.yml @@ -94,7 +94,7 @@ owner=root src=apache2_piwik_vhost.conf.j2 notify: - - restart "apache2" + - reload "apache2" (graceful) - name: enable Apache VHost configuration for Piwik tags: @@ -107,7 +107,7 @@ src=/etc/apache2/sites-available/piwik.conf state=link notify: - - restart "apache2" + - reload "apache2" (graceful) - name: install Piwik PHP configuration tags: -- 2.39.2