|
|
@ -59,9 +59,6 @@ options:
|
|
|
|
description:
|
|
|
|
description:
|
|
|
|
- all arguments accepted by the M(file) module also work here
|
|
|
|
- all arguments accepted by the M(file) module also work here
|
|
|
|
required: false
|
|
|
|
required: false
|
|
|
|
examples:
|
|
|
|
|
|
|
|
- code: "get_url: url=http://example.com/path/file.conf dest=/etc/foo.conf mode=0440"
|
|
|
|
|
|
|
|
description: "Example from Ansible Playbooks"
|
|
|
|
|
|
|
|
notes:
|
|
|
|
notes:
|
|
|
|
- This module doesn't yet support configuration for proxies.
|
|
|
|
- This module doesn't yet support configuration for proxies.
|
|
|
|
# informational: requirements for nodes
|
|
|
|
# informational: requirements for nodes
|
|
|
@ -69,6 +66,11 @@ requirements: [ urllib2, urlparse ]
|
|
|
|
author: Jan-Piet Mens
|
|
|
|
author: Jan-Piet Mens
|
|
|
|
'''
|
|
|
|
'''
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
EXAMPLES='''
|
|
|
|
|
|
|
|
get_url: url=http://example.com/path/file.conf dest=/etc/foo.conf mode=0440"
|
|
|
|
|
|
|
|
'''
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
HAS_URLLIB2 = True
|
|
|
|
HAS_URLLIB2 = True
|
|
|
|
try:
|
|
|
|
try:
|
|
|
|
import urllib2
|
|
|
|
import urllib2
|
|
|
|