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
chunhua.zhang
2019-03-05 11:29:20 +0800
Commit
33be7091f00cad89b464ae0a18602ead60c60a23
1 parent
d2909199
add rmeove
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
22 additions
and
31 deletions
inventories/test/remove_az1.ini
playbooks/demo/java.remove_service.yml → playbooks/java.remove_service.yml
inventories/test/remove_az1.ini
View file @
33be709
# remove micro service
# run: ansible-playbook -i inventories/remove_az1.ini playbooks/java.remove_service.yml --extra-vars "service=erp-gateway"
[order]
10.66.70.248
10.66.70.143
10.66.70.58
10.66.70.44
10.66.70.180
10.66.70.41
10.66.70.170
10.66.70.95
[promotion]
10.66.70.248
10.66.70.143
10.66.70.58
10.66.70.44
10.66.70.180
10.66.70.41
10.66.70.170
10.66.70.95
[product]
10.66.70.14
10.66.70.123
10.66.70.127
10.66.70.162
10.66.70.47
10.66.70.96
[message]
10.66.70.14
10.66.70.123
10.66.70.127
10.66.70.162
10.66.70.47
10.66.70.96
[sns]
10.66.70.14
10.66.70.123
10.66.70.127
10.66.70.162
10.66.70.47
10.66.70.96
[users]
10.66.70.225
10.66.70.37
10.66.70.152
10.66.70.203
10.66.70.9
10.66.70.128
[resources]
10.66.70.225
10.66.70.37
10.66.70.152
10.66.70.203
10.66.70.9
10.66.70.128
[bigdata]
10.66.70.207
...
...
playbooks/
demo/
java.remove_service.yml → playbooks/java.remove_service.yml
View file @
33be709
-
hosts
:
"
{{service}}"
vars
:
gw_url
:
10.66.70.
79
:8080/gateway
gw_url
:
10.66.70.
3
:8080/gateway
tasks
:
-
uri
:
url
:
http://{{gw_url}}/service_control/unregister?ip={{inventory_hostname}}&context={{service}}
...
...
Please
register
or
login
to post a comment