mirror of
https://github.com/ansible-collections/community.general.git
synced 2024-09-14 20:13:21 +02:00
Remove unneeded quotes - windows/win_uri.py (#18828)
This commit is contained in:
parent
cf5449c5d9
commit
8dc3b60d0f
1 changed files with 4 additions and 11 deletions
|
@ -71,31 +71,24 @@ author: Corwin Brown (@blakfeld)
|
||||||
"""
|
"""
|
||||||
|
|
||||||
EXAMPLES = """
|
EXAMPLES = """
|
||||||
# Send a GET request and store the output:
|
|
||||||
---
|
|
||||||
- name: Perform a GET and Store Output
|
- name: Perform a GET and Store Output
|
||||||
win_uri:
|
win_uri:
|
||||||
url: http://www.somesite.com/myendpoint
|
url: http://example.com/endpoint
|
||||||
register: http_output
|
register: http_output
|
||||||
|
|
||||||
# Set a HOST header to hit an internal webserver:
|
# Set a HOST header to hit an internal webserver:
|
||||||
---
|
|
||||||
- name: Hit a Specific Host on the Server
|
- name: Hit a Specific Host on the Server
|
||||||
win_uri:
|
win_uri:
|
||||||
url: http://my.internal.server.com
|
url: http://example.com
|
||||||
method: GET
|
method: GET
|
||||||
headers:
|
headers:
|
||||||
host: "www.somesite.com"
|
host: www.somesite.com
|
||||||
|
|
||||||
# Do a HEAD request on an endpoint
|
|
||||||
---
|
|
||||||
- name: Perform a HEAD on an Endpoint
|
- name: Perform a HEAD on an Endpoint
|
||||||
win_uri:
|
win_uri:
|
||||||
url: http://www.somesite.com
|
url: http://www.example.com
|
||||||
method: HEAD
|
method: HEAD
|
||||||
|
|
||||||
# Post a body to an endpoint
|
|
||||||
---
|
|
||||||
- name: POST a Body to an Endpoint
|
- name: POST a Body to an Endpoint
|
||||||
win_uri:
|
win_uri:
|
||||||
url: http://www.somesite.com
|
url: http://www.somesite.com
|
||||||
|
|
Loading…
Reference in a new issue