]> arthur.barton.de Git - AnsibleRoles.git/commitdiff
apache2: Add 'reload "apache2" (graceful)' handler
authorAlexander Barton <alex@barton.de>
Thu, 12 Oct 2017 14:00:37 +0000 (16:00 +0200)
committerAlexander Barton <alex@barton.de>
Thu, 12 Oct 2017 14:00:37 +0000 (16:00 +0200)
roles/apache2/handlers/main.yml
roles/piwik/tasks/main.yml

index 9af0902c3c57cd3fab749a2602562be775a54a0b..6e20069ff6cd89393ebaf133f5d1f80ecd1eb8b5 100644 (file)
@@ -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
index 6442168ca9305da17dab28230595b8b532db98d4..ef58553ec9a105e05f212e41b4d211205628c2dd 100644 (file)
@@ -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:
     src=/etc/apache2/sites-available/piwik.conf
     state=link
   notify:
-    - restart "apache2"
+    - reload "apache2" (graceful)
 
 - name: install Piwik PHP configuration
   tags: