Authored by chunhua.zhang

add

- hosts: order, promotion
vars_prompt:
- name: "confirmation"
prompt: "Please Enter YES to continue."
private: no
- hosts: order
vars:
gw_url: 10.66.70.79:8080/gateway
tasks:
... ... @@ -12,4 +8,19 @@
when: confirmation != 'YES'
- uri:
url: http://{{gw_url}}/service_control/unregister?ip={{inventory_hostname}}&context={{group_names[0]}}
remote_user: root
\ No newline at end of file
remote_user: root
- hosts: promotion
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
... ...