java.remove_service.yml
465 Bytes
- hosts: order, promotion
vars_prompt:
- name: "confirmation"
prompt: "Please Enter YES to continue."
private: no
vars:
gw_url: 10.66.70.79:8080/gateway
tasks:
- name: "make sure user type yes to confirm"
fail:
msg: "user do not type yes"
when: confirmation != 'YES'
- uri:
url: http://{{gw_url}}/service_control/unregister?ip={{inventory_hostname}}&context={{group_names[0]}}
remote_user: root