Browse Source

Delegate API/Server restarts to the API host

cmacrae 9 năm trước cách đây
mục cha
commit
5c744a02e7
1 tập tin đã thay đổi với 2 bổ sung0 xóa
  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