From: Alexander Barton Date: Thu, 12 Oct 2017 14:00:37 +0000 (+0200) Subject: apache2: Add 'reload "apache2" (graceful)' handler X-Git-Url: https://arthur.barton.de/cgi-bin/gitweb.cgi?p=AnsibleRoles.git;a=commitdiff_plain;h=7bd6be69c7d1ae8c946f68b7fcb1e69fef0fad36 apache2: Add 'reload "apache2" (graceful)' handler --- 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: