|
|
@ -34,13 +34,21 @@ options:
|
|
|
|
- The full URL of a file to download
|
|
|
|
- The full URL of a file to download
|
|
|
|
required: true
|
|
|
|
required: true
|
|
|
|
default: null
|
|
|
|
default: null
|
|
|
|
aliases: []
|
|
|
|
|
|
|
|
dest:
|
|
|
|
dest:
|
|
|
|
description:
|
|
|
|
description:
|
|
|
|
- The absolute path of the location to save the file at the URL. Be sure to include a filename and extension as appropriate.
|
|
|
|
- The absolute path of the location to save the file at the URL. Be sure
|
|
|
|
|
|
|
|
to include a filename and extension as appropriate.
|
|
|
|
|
|
|
|
required: true
|
|
|
|
|
|
|
|
default: null
|
|
|
|
|
|
|
|
force:
|
|
|
|
|
|
|
|
description:
|
|
|
|
|
|
|
|
- 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
|
|
|
|
|
|
|
|
modified more recently than the local file.
|
|
|
|
|
|
|
|
version_added: "2.0"
|
|
|
|
required: false
|
|
|
|
required: false
|
|
|
|
|
|
|
|
choices: [ "yes", "no" ]
|
|
|
|
default: yes
|
|
|
|
default: yes
|
|
|
|
aliases: []
|
|
|
|
|
|
|
|
author: "Paul Durivage (@angstwad)"
|
|
|
|
author: "Paul Durivage (@angstwad)"
|
|
|
|
'''
|
|
|
|
'''
|
|
|
|
|
|
|
|
|
|
|
@ -54,4 +62,10 @@ $ ansible -i hosts -c winrm -m win_get_url -a "url=http://www.example.com/earthr
|
|
|
|
win_get_url:
|
|
|
|
win_get_url:
|
|
|
|
url: 'http://www.example.com/earthrise.jpg'
|
|
|
|
url: 'http://www.example.com/earthrise.jpg'
|
|
|
|
dest: 'C:\Users\RandomUser\earthrise.jpg'
|
|
|
|
dest: 'C:\Users\RandomUser\earthrise.jpg'
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
- name: Download earthrise.jpg to 'C:\Users\RandomUser\earthrise.jpg' only if modified
|
|
|
|
|
|
|
|
win_get_url:
|
|
|
|
|
|
|
|
url: 'http://www.example.com/earthrise.jpg'
|
|
|
|
|
|
|
|
dest: 'C:\Users\RandomUser\earthrise.jpg'
|
|
|
|
|
|
|
|
force: no
|
|
|
|
'''
|
|
|
|
'''
|
|
|
|