...
|
...
|
@@ -33,3 +33,10 @@ |
|
|
- name: restart {{ deploy_path }}
|
|
|
shell: sh /home/master/{{ deploy_path }}/deploy/bin/killws.sh && sh /home/master/{{ deploy_path }}/deploy/bin/startws.sh
|
|
|
async: 60
|
|
|
|
|
|
- name: check service runtime
|
|
|
shell: ps -ef|grep java|grep {{ deploy_path }}|awk '{print $5}'
|
|
|
register: service_runtime
|
|
|
|
|
|
- name: print service uptime
|
|
|
debug: msg="Serivce last uptime is {{ service_runtime.stdout }}" |
...
|
...
|
|