Explorar o código

Delegate API/Server restarts to the API host

cmacrae %!s(int64=9) %!d(string=hai) anos
pai
achega
5c744a02e7
Modificáronse 1 ficheiros con 2 adicións e 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