Authored by root

支持单个service重启

#gateway
- hosts: {{ host_group }}
vars:
deploy_path: {{ service_name }}
remote_user: root
become: true
become_method: sudo
become_user: master
tasks:
- name: restart {{ deploy_path }}
shell: sh /home/master/{{ deploy_path }}/deploy/bin/killws.sh && sh /home/master/{{ deploy_path }}/deploy/bin/startws.sh
... ...