Authored by chunhua.zhang

add rmeove

# 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
... ...
- 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}}
... ...