Showing
1 changed file
with
2 additions
and
1 deletions
@@ -39,6 +39,7 @@ | @@ -39,6 +39,7 @@ | ||
39 | url: "http://{{item}}/switchCloud?netType={{ netType }}&cloudType={{ cloudType }}" | 39 | url: "http://{{item}}/switchCloud?netType={{ netType }}&cloudType={{ cloudType }}" |
40 | return_content: yes | 40 | return_content: yes |
41 | status_code: 200 | 41 | status_code: 200 |
42 | + body_format: json | ||
42 | headers: | 43 | headers: |
43 | Host: 'dnsresolver.yohoops.org' | 44 | Host: 'dnsresolver.yohoops.org' |
44 | register: switch_result | 45 | register: switch_result |
@@ -46,7 +47,7 @@ | @@ -46,7 +47,7 @@ | ||
46 | 47 | ||
47 | - name: print swith netType results | 48 | - name: print swith netType results |
48 | debug: | 49 | debug: |
49 | - msg: "{{ item }}" | 50 | + msg: "{{ item.json }}" |
50 | with_items: "{{ switch_result.results }}" | 51 | with_items: "{{ switch_result.results }}" |
51 | 52 | ||
52 | # make sure switch is enabled | 53 | # make sure switch is enabled |
-
Please register or login to post a comment