uri module, fix example (#80554)

pull/80589/head
Brian Coca 1 year ago committed by GitHub
parent 560d5b00d0
commit 449c628f3d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -257,12 +257,12 @@ EXAMPLES = r'''
ansible.builtin.uri:
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:
url: http://www.example.com
return_content: true
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
ansible.builtin.uri:

Loading…
Cancel
Save