@ -113,7 +113,7 @@ options:
- 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
# informational: requirements for nodes
# informational: requirements for nodes
requirements : [ urllib2 , urlparse ]
requirements : [ ]
author : " Jan-Piet Mens (@jpmens) "
author : " Jan-Piet Mens (@jpmens) "
'''
'''
@ -125,6 +125,8 @@ EXAMPLES='''
get_url : url = http : / / example . com / path / file . conf dest = / etc / foo . conf sha256sum = b5bb9d8014a0f9b1d61e21e796d78dccdf1352f23cd32812f4850b878ae4944c
get_url : url = http : / / example . com / path / file . conf dest = / etc / foo . conf sha256sum = b5bb9d8014a0f9b1d61e21e796d78dccdf1352f23cd32812f4850b878ae4944c
'''
'''
import urlparse
try :
try :
import hashlib
import hashlib
HAS_HASHLIB = True
HAS_HASHLIB = True
@ -315,4 +317,5 @@ def main():
# import module snippets
# import module snippets
from ansible . module_utils . basic import *
from ansible . module_utils . basic import *
from ansible . module_utils . urls import *
from ansible . module_utils . urls import *
main ( )
if __name__ == ' __main__ ' :
main ( )