double backslashed all single backslashes to keep travis happy
This commit is contained in:
parent
2cc212fb37
commit
1a57ac67bd
1 changed files with 8 additions and 8 deletions
|
@ -90,24 +90,24 @@ options:
|
||||||
EXAMPLES = r'''
|
EXAMPLES = r'''
|
||||||
# Downloading a JPEG and saving it to a file with the ansible command.
|
# Downloading a JPEG and saving it to a file with the ansible command.
|
||||||
# Note the "dest" is quoted rather instead of escaping the backslashes
|
# Note the "dest" is quoted rather instead of escaping the backslashes
|
||||||
$ ansible -i hosts -c winrm -m win_get_url -a "url=http://www.example.com/earthrise.jpg dest='C:\Users\Administrator\earthrise.jpg'" all
|
$ ansible -i hosts -c winrm -m win_get_url -a "url=http://www.example.com/earthrise.jpg dest='C:\\Users\\Administrator\\earthrise.jpg'" all
|
||||||
|
|
||||||
# Playbook example
|
# Playbook example
|
||||||
- name: Download earthrise.jpg to 'C:\Users\RandomUser\earthrise.jpg'
|
- name: Download earthrise.jpg to 'C:\\Users\\RandomUser\\earthrise.jpg'
|
||||||
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
|
- name: Download earthrise.jpg to 'C:\\Users\\RandomUser\\earthrise.jpg' only if modified
|
||||||
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'
|
||||||
force: no
|
force: no
|
||||||
|
|
||||||
- name: Download earthrise.jpg to 'C:\Users\RandomUser\earthrise.jpg' through a proxy server.
|
- name: Download earthrise.jpg to 'C:\\Users\\RandomUser\\earthrise.jpg' through a proxy server.
|
||||||
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'
|
||||||
proxy_url: 'http://10.0.0.1:8080'
|
proxy_url: 'http://10.0.0.1:8080'
|
||||||
proxy_username: 'username'
|
proxy_username: 'username'
|
||||||
proxy_password: 'password'
|
proxy_password: 'password'
|
||||||
|
@ -122,5 +122,5 @@ dest:
|
||||||
description: destination file/path
|
description: destination file/path
|
||||||
returned: always
|
returned: always
|
||||||
type: string
|
type: string
|
||||||
sample: 'C:\Users\RandomUser\earthrise.jpg'
|
sample: 'C:\\Users\\RandomUser\\earthrise.jpg'
|
||||||
'''
|
'''
|
||||||
|
|
Loading…
Reference in a new issue