uri module, fix example (#80554)

This commit is contained in:
Brian Coca
2023-04-20 14:39:17 -04:00
committed by GitHub
parent 560d5b00d0
commit 449c628f3d
+2 -2
View File
@@ -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: