Explorar el Código

Delegate API/Server restarts to the API host

cmacrae hace 9 años
padre
commit
5c744a02e7
Se han modificado 1 ficheros con 2 adiciones y 0 borrados
  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