Sfoglia il codice sorgente

Delegate API/Server restarts to the API host

cmacrae 10 anni fa
parent
commit
5c744a02e7
1 ha cambiato i file con 2 aggiunte e 0 eliminazioni
  1. 2 0
      handlers/main.yml

+ 2 - 0
handlers/main.yml

@@ -8,9 +8,11 @@
 
   - name: restart sensu-server service
     service: name=sensu-server state=restarted
+    delegate_to: "{{ sensu_api_host }}"
 
   - name: restart sensu-api service
     service: name=sensu-api state=restarted
+    delegate_to: "{{ sensu_api_host }}"
 
   - name: restart sensu-client service
     service: name=sensu-client state=restarted