|
|
|
@ -1,11 +1,11 @@
|
|
|
|
- name: Test that retrieving a url works
|
|
|
|
- name: Test that retrieving a url works
|
|
|
|
set_fact:
|
|
|
|
set_fact:
|
|
|
|
web_data: "{{ lookup('url', 'https://gist.githubusercontent.com/abadger/9858c22712f62a8effff/raw/43dd47ea691c90a5fa7827892c70241913351963/test') }}"
|
|
|
|
web_data: "{{ lookup('url', 'https://{{ httpbin_host }}/get?one') }}"
|
|
|
|
|
|
|
|
|
|
|
|
- name: Assert that the url was retrieved
|
|
|
|
- name: Assert that the url was retrieved
|
|
|
|
assert:
|
|
|
|
assert:
|
|
|
|
that:
|
|
|
|
that:
|
|
|
|
- "'one' in web_data"
|
|
|
|
- "'one' in web_data.args"
|
|
|
|
|
|
|
|
|
|
|
|
- name: Test that retrieving a url with invalid cert fails
|
|
|
|
- name: Test that retrieving a url with invalid cert fails
|
|
|
|
set_fact:
|
|
|
|
set_fact:
|
|
|
|
|