Authored by chunhua.zhang

add

@@ -3,6 +3,9 @@ @@ -3,6 +3,9 @@
3 # anthor: chunhua.zhang 3 # anthor: chunhua.zhang
4 - hosts: localhost 4 - hosts: localhost
5 vars_prompt: 5 vars_prompt:
  6 + - name: "confirmation"
  7 + prompt: "Start to change . Please Enter YES to continue"
  8 + private: no
6 - name: "netType" 9 - name: "netType"
7 prompt: "Please choose device enterpoint: 0 for Domain(api.yoho.cn) or 1 for DCDN(api-dc1-qq.yoho.cn). [0|1]" 10 prompt: "Please choose device enterpoint: 0 for Domain(api.yoho.cn) or 1 for DCDN(api-dc1-qq.yoho.cn). [0|1]"
8 default: 1 11 default: 1
@@ -13,6 +16,12 @@ @@ -13,6 +16,12 @@
13 private: no 16 private: no
14 17
15 tasks: 18 tasks:
  19 +
  20 + - name: "make sure user type YES to confirm"
  21 + fail:
  22 + msg: "user do not type YES"
  23 + when: confirmation != 'YES'
  24 +
16 # query for current configration 25 # query for current configration
17 - name: Query for current configuration 26 - name: Query for current configuration
18 uri: 27 uri: