mirror of
https://github.com/ansible/ansible.git
synced 2026-08-03 08:03:05 +02:00
uri module, fix example (#80554)
This commit is contained in:
@@ -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:
|
||||||
|
|||||||
Reference in New Issue
Block a user