mirror of
https://github.com/ansible-collections/community.general.git
synced 2025-08-01 19:54:24 -07:00
document how force=no works for win_get_url and add RETURN
This commit is contained in:
parent
6441556b98
commit
d3d108e13e
1 changed files with 16 additions and 1 deletions
|
@ -47,7 +47,10 @@ options:
|
||||||
description:
|
description:
|
||||||
- If C(yes), will always download the file. If C(no), will only
|
- If C(yes), will always download the file. If C(no), will only
|
||||||
download the file if it does not exist or the remote file has been
|
download the file if it does not exist or the remote file has been
|
||||||
modified more recently than the local file.
|
modified more recently than the local file. This works by sending
|
||||||
|
an http HEAD request to retrieve last modified time of the requested
|
||||||
|
resource, so for this to work, the remote web server must support
|
||||||
|
HEAD requests.
|
||||||
version_added: "2.0"
|
version_added: "2.0"
|
||||||
required: false
|
required: false
|
||||||
choices: [ "yes", "no" ]
|
choices: [ "yes", "no" ]
|
||||||
|
@ -109,3 +112,15 @@ $ ansible -i hosts -c winrm -m win_get_url -a "url=http://www.example.com/earthr
|
||||||
proxy_username: 'username'
|
proxy_username: 'username'
|
||||||
proxy_password: 'password'
|
proxy_password: 'password'
|
||||||
'''
|
'''
|
||||||
|
RETURN = '''
|
||||||
|
url:
|
||||||
|
description: requested url
|
||||||
|
returned: always
|
||||||
|
type: string
|
||||||
|
sample: 'http://www.example.com/earthrise.jpg'
|
||||||
|
dest:
|
||||||
|
description: destination file/path
|
||||||
|
returned: always
|
||||||
|
type: string
|
||||||
|
sample: 'C:\Users\RandomUser\earthrise.jpg'
|
||||||
|
'''
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue