Authored by root

Update

@@ -2,9 +2,9 @@ @@ -2,9 +2,9 @@
2 serial: "50%" 2 serial: "50%"
3 remote_user: root 3 remote_user: root
4 vars: 4 vars:
5 - yoho_services: ['gateway','message','sns','users','social','ufo-fore'] 5 + yoho_services: ['gateway','message','sns','users','social']
6 yohobuy_services: ['activity','bigdata','brower','order','product','promotion','resources','risk','union','wechat'] 6 yohobuy_services: ['activity','bigdata','brower','order','product','promotion','resources','risk','union','wechat']
7 - uniq_services: ['uic','platform-cms','ufo-platform'] 7 + uniq_services: ['uic','platform-cms','ufo-platform','ufo-fore']
8 become: true 8 become: true
9 become_method: sudo 9 become_method: sudo
10 become_user: master 10 become_user: master
@@ -30,13 +30,15 @@ @@ -30,13 +30,15 @@
30 deploy_path: "yoho-erp-gateway" 30 deploy_path: "yoho-erp-gateway"
31 when: service == "erpgateway" 31 when: service == "erpgateway"
32 32
33 - - name: restart {{ deploy_path }}  
34 - shell: sh /home/master/{{ deploy_path }}/deploy/bin/killws.sh && sh /home/master/{{ deploy_path }}/deploy/bin/startws.sh  
35 - async: 120  
36 -  
37 - - name: check service runtime  
38 - shell: ps -ef|grep java|grep {{ deploy_path }}|grep -v grep|awk '{print $5}'  
39 - register: service_runtime  
40 -  
41 - - name: print service uptime  
42 - debug: msg="Serivce {{ deploy_path }} last uptime is {{ service_runtime.stdout }}" 33 + - import_role:
  34 + name: java.restart
  35 +# - name: restart {{ deploy_path }}
  36 +# shell: sh /home/master/{{ deploy_path }}/deploy/bin/killws.sh && sh /home/master/{{ deploy_path }}/deploy/bin/startws.sh
  37 +# async: 120
  38 +#
  39 +# - name: check service runtime
  40 +# shell: ps -ef|grep java|grep {{ deploy_path }}|grep -v grep|awk '{print $5}'
  41 +# register: service_runtime
  42 +#
  43 +# - name: print service uptime
  44 +# debug: msg="Serivce {{ deploy_path }} last uptime is {{ service_runtime.stdout }}"