summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBrian Coca <bcoca@users.noreply.github.com>2023-04-20 14:39:17 -0400
committerGitHub <noreply@github.com>2023-04-20 14:39:17 -0400
commit449c628f3d8dee4b93e0d3e6880b146ebb5486f0 (patch)
treed75b30df581771180ebfbcdd4d53668f654c1852
parent560d5b00d05f3180fdaf3d86c55702be8f88f9a0 (diff)
downloadansible-449c628f3d8dee4b93e0d3e6880b146ebb5486f0.tar.gz
uri module, fix example (#80554)
-rw-r--r--lib/ansible/modules/uri.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/ansible/modules/uri.py b/lib/ansible/modules/uri.py
index 9740bdd187..03ba66fa87 100644
--- a/lib/ansible/modules/uri.py
+++ b/lib/ansible/modules/uri.py
@@ -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: