Selaa lähdekoodia

fix apache and prosody notification

Laurent Hory 8 vuotta sitten
vanhempi
commit
7978a69186

+ 2 - 0
roles/certbot/handlers/main.yml

@@ -0,0 +1,2 @@
+- name: restart prosody
+  service: name=prosody state=restarted

+ 2 - 0
roles/certbot/tasks/main.yml

@@ -24,3 +24,5 @@
   file:
     path: /etc/apache2/sites-available/renewal.conf
     state: absent
+  notify:
+    - restart prosody

+ 4 - 4
roles/disable-apache/tasks/main.yml

@@ -15,8 +15,8 @@
 
 - name: enable renewal site
   command: "a2ensite renewal renewal-ssl"
-  notify:
-    - reload apache
 
-- name: test
-  command: "echo test"
+- name: reload apache
+  service:
+    name: apache2
+    state: reloaded

+ 2 - 0
roles/enable-apache/meta/main.yml

@@ -0,0 +1,2 @@
+dependencies:
+  - role: disable-apache

+ 4 - 0
roles/enable-apache/tasks/main.yml

@@ -3,6 +3,8 @@
   with_items:
     - courses
     - courses-ssl
+    - demo
+    - demo-ssl
     - git
     - git-ssl
     - monitoring
@@ -21,3 +23,5 @@
     - wiki-ssl
     - www.hory.me
     - www.hory.me-ssl
+  notify:
+    - reload apache