From 449c628f3d8dee4b93e0d3e6880b146ebb5486f0 Mon Sep 17 00:00:00 2001 From: Brian Coca Date: Thu, 20 Apr 2023 14:39:17 -0400 Subject: uri module, fix example (#80554) --- lib/ansible/modules/uri.py | 4 ++-- 1 file 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: -- cgit v1.2.1