Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
A
ansible
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
OpenEdx
ansible
Commits
005f8640
Commit
005f8640
authored
Jan 24, 2013
by
igor
Committed by
Michael DeHaan
Jan 26, 2013
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
minor doc changes
parent
d683c243
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
7 deletions
+8
-7
library/get_url
+8
-7
No files found.
library/get_url
View file @
005f8640
...
...
@@ -35,7 +35,8 @@ version_added: "0.6"
options:
url:
description:
- HTTP, HTTPS, or FTP URL
- HTTP, HTTPS, or FTP URL.
(http|https|ftp)://[user[:pass]]@host.domain[:port]/path
required: true
default: null
aliases: []
...
...
@@ -63,18 +64,18 @@ examples:
- code: "get_url: url=http://example.com/path/file.conf dest=/etc/foo.conf mode=0440"
description: "Example from Ansible Playbooks"
notes:
- This module doesn't yet support configuration for proxies
or passwords
.
- This module doesn't yet support configuration for proxies.
# informational: requirements for nodes
requirements: [ urllib2, urlparse ]
author: Jan-Piet Mens
'''
HAS_URLLIB2
=
True
HAS_URLLIB2
=
True
try
:
import
urllib2
except
ImportError
:
HAS_URLLIB2
=
False
HAS_URLPARSE
=
True
HAS_URLLIB2
=
False
HAS_URLPARSE
=
True
try
:
import
urlparse
...
...
@@ -255,8 +256,8 @@ def main():
# Mission complete
module
.
exit_json
(
url
=
url
,
dest
=
dest
,
src
=
tmpsrc
,
md5sum
=
md5sum_src
,
changed
=
changed
,
msg
=
info
.
get
(
'msg'
,
''
),
daisychain
=
"file"
,
daisychain_args
=
info
.
get
(
'daisychain_args'
,
''
))
changed
=
changed
,
msg
=
info
.
get
(
'msg'
,
''
),
daisychain
=
"file"
,
daisychain_args
=
info
.
get
(
'daisychain_args'
,
''
))
# this is magic, see lib/ansible/module_common.py
#<<INCLUDE_ANSIBLE_MODULE_COMMON>>
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment