Toggle navigation
Toggle navigation
This project
Loading...
Sign in
ops
/
yoho-ansible-roles
·
Commits
Go to a project
GitLab
Go to group
Project
Activity
Files
Commits
Pipelines
0
Builds
0
Graphs
Milestones
Issues
0
Merge Requests
0
Members
Labels
Wiki
Forks
Network
Create a new issue
Download as
Email Patches
Plain Diff
Browse Files
Authored by
root
2018-10-15 15:42:22 +0800
Commit
8be747cfa010be3ed3ebfb20decbd04971ff1f9f
1 parent
2c09b09e
支持单个service重启
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
0 deletions
playbooks/java.restart-service.yml
playbooks/java.restart-service.yml
0 → 100644
View file @
8be747c
#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
...
...
Please
register
or
login
to post a comment