|
|
@ -257,12 +257,12 @@ EXAMPLES = r'''
|
|
|
|
ansible.builtin.uri:
|
|
|
|
ansible.builtin.uri:
|
|
|
|
url: http://www.example.com
|
|
|
|
url: http://www.example.com
|
|
|
|
|
|
|
|
|
|
|
|
- name: Check that a page returns a status 200 and fail if the word AWESOME is not in the page contents
|
|
|
|
- name: Check that a page returns successfully but fail if the word AWESOME is not in the page contents
|
|
|
|
ansible.builtin.uri:
|
|
|
|
ansible.builtin.uri:
|
|
|
|
url: http://www.example.com
|
|
|
|
url: http://www.example.com
|
|
|
|
return_content: true
|
|
|
|
return_content: true
|
|
|
|
register: this
|
|
|
|
register: this
|
|
|
|
failed_when: "'AWESOME' not in this.content"
|
|
|
|
failed_when: this is failed or "'AWESOME' not in this.content"
|
|
|
|
|
|
|
|
|
|
|
|
- name: Create a JIRA issue
|
|
|
|
- name: Create a JIRA issue
|
|
|
|
ansible.builtin.uri:
|
|
|
|
ansible.builtin.uri:
|
|
|
|