Don't override the http status code when successful in urls.py

This commit is contained in:
James Cammarata
2016-04-18 13:02:57 -04:00
parent 7833b5bec4
commit ed35e8bce2
2 changed files with 8 additions and 2 deletions

View File

@@ -279,3 +279,10 @@
state: absent
with_items: "{{ uri_os_packages[ansible_os_family] }}"
when: not ansible_python.has_sslcontext and not is_ubuntu_precise|bool
- name: validate the status_codes are correct
uri:
url: https://httpbin.org/status/202
status_code: 202
method: POST
body: foo