Martin Matuška
f07e3d297f
Force download if checksums do not match ( #4262 )
2016-09-12 07:45:46 +02:00
afunix
ab7fe884d7
Updated get_url module to process FTP results correctly [ #3661 ] ( #4601 )
2016-09-08 12:23:54 -07:00
Michael Scherer
1acb23f8d6
Fix uri to run on python3 ( #4580 )
...
Since dict no longer have a method iteritems, we have to use
the six wrapper.
2016-08-31 08:16:01 -07:00
Timothy Appnel
2538c70d46
Fixes get_url examples in docs and applies native YAML syntax. ( #4474 )
2016-08-30 20:04:03 +01:00
Roman
78adaf2116
get_url headers param values parsing ( #4245 )
2016-08-10 23:49:58 +02:00
Brian Coca
46d6bead71
document that get_url also takes file params
...
has for a long time, but was never documented, mode,group, owner can all be set here
2016-06-13 15:52:57 -04:00
Brian Coca
172bd21f41
Revert "Add mode option to the list" ( #3946 )
2016-06-13 15:48:43 -04:00
Victor Bocharsky
3573223aeb
Add mode option to docstring for get_url ( #3630 )
...
Add mode option to the list
2016-06-13 15:36:23 -04:00
jctanner
4a3916bd46
Use the six import for urlsplit instead of importing directly. ( #3902 )
...
Fixes https://github.com/ansible/ansible/issues/16191
2016-06-09 13:25:17 -04:00
Toshio Kuratomi
cb1093e085
Fix the six import
2016-06-04 10:49:13 -07:00
Toshio Kuratomi
469169f654
Be sure to import urllib.parse from somewhere
2016-06-04 08:49:24 -07:00
Michael Scherer
cc99fe24fc
Convert the network subfolder to py3/py2.4 syntax ( #3690 )
2016-05-18 09:08:30 -07:00
Brian Coca
9ae898c902
made note about slurp memory consumption
2016-05-12 14:44:21 -04:00
James Cammarata
b1641ec486
Remove extraneous debug stuff from uri module left over from testing
2016-04-25 14:34:27 -04:00
James Cammarata
84ee00bb42
Make sure uri output contains json output when a non-200 status is returned
...
Prior to the switch to the urls.py code, non-200 responses contained
a 'json' value when the content-type was JSON. This fix restores that
field upon a non-2xx response.
Fixes ansible/ansible#15555
2016-04-25 14:19:03 -04:00
jctanner
804a8e6378
Fix status check on get_url with file schemas and update the examples. ( #3512 )
...
Addresses #3511
2016-04-21 16:28:29 -04:00
Toshio Kuratomi
a2f41dfb04
Give headers a default so that we can add to it.
2016-03-24 07:24:28 -07:00
Toshio Kuratomi
d71b9bae89
If file attribs are specified set them even if file already exists.
...
Fixes #11821
2016-03-20 07:36:06 -07:00
Matt Martz
3c59eedb9b
Don't pass follow_redirects to fetch_url, use module.params instead
2016-03-07 15:34:22 -06:00
Brian Coca
0bbb7ba38d
Merge pull request #3135 from mscherer/improve_uri_doc
...
Fix non RFC 2606 domain name in doc
2016-02-29 17:52:35 -05:00
Toshio Kuratomi
7088f72742
At least for now, set body to raw as it can be either a dict or jsonified-str
...
Since our validation does conversion as well as validation, I'm not sure
this is entirely correct. May need to take a look at our conversion
code and re-examine to be sure we're doing it right.
2016-02-29 07:20:39 -08:00
Toshio Kuratomi
3853d2a9a6
Change parameter to type=path
...
Read as binary for python3 preparedness
2016-02-29 00:38:10 -08:00
Michael Scherer
d81a6740ec
Fix non RFC 2606 domain name in doc
2016-02-28 11:51:17 +01:00
Brian Coca
7162623e86
Merge pull request #2913 from msvab/devel
...
Clarify get_url timeout documentation
2016-02-23 13:30:39 -05:00
Matt Martz
adf2125339
Indicate in notes that the dependency on httplib2 was removed for v2.1
2016-02-23 11:53:02 -06:00
Matt Martz
7f206fdfe8
Drop dependency on httplib2 in the uri module, instead using ansible.module_utils.urls
2016-02-23 10:35:11 -06:00
Brian Coca
f5a374103f
fixes for uri module
...
- clarify docs on body_json behaviour
- only tranform into json if body input is not a string
users keep passing json string and expecint it to not be jsonified again
- fixed issue with removes not handling path expansion correctly
- switched all path variables to 'type path' to handle expansions
2016-02-11 01:09:20 -05:00
Michal Svab
2c3ef42d92
Clarify get_url timeout documentation
2016-01-29 09:24:28 +00:00
Brian Coca
df222bed86
added missing version_added
2016-01-18 20:46:44 -05:00
techraf
49ec5a6a30
Added 'backup' parameter to get_url module
2016-01-12 00:16:19 +09:00
Brian Coca
1229adb36c
Merge pull request #2609 from cspollar/devel
...
Fixed typo in uri module example
2015-12-02 16:08:15 -08:00
Brian Coca
292a83cba7
corrected version_added for new temp_dest feature
2015-12-02 14:30:28 -08:00
Brian Coca
d2eaf33add
Merge pull request #1887 from sysadmin75/9512_get_url_tmp_option2
...
Adds tmp_dest option to get_url module.
2015-12-02 14:24:25 -08:00
cspollar
34f7d7b068
Fixed typo in uri module example
2015-12-02 14:01:16 -06:00
Toshio Kuratomi
22c2789b72
Document and return an error if httplib2 >= 0.7 is not present. We
...
can't use httplib2 0.6.x and below because they do not verify TLS
certificates and thus are insecure.
Fixes #1875
2015-10-28 08:52:22 -07:00
Toshio Kuratomi
49ee5dd443
Remove debugging
2015-10-19 10:20:42 -07:00
Toshio Kuratomi
11833906b5
xmlcharrefreplace is only for encoding, not for decoding :-(
2015-10-19 10:15:13 -07:00
Brian Coca
f33fba84c0
specified that uri must be uppercase
2015-10-19 10:14:07 -04:00
Brian Coca
144291120e
restored quotes to checksum description to avoid breaking docs
2015-10-05 09:07:16 -04:00
JM
7943b3e6b0
description for the get_url module describing checksum verification before file download
2015-10-04 14:24:07 +02:00
Sam Mingo
7982d582d9
Update get_url.py
...
Fixed typo with header parameter to get_url in the documentation.
2015-09-09 17:38:05 -04:00
Colin Hutchinson
ab50943887
Update get_url.py
...
use an abbreviated sha
2015-09-08 12:00:21 -04:00
Colin Hutchinson
880dc307b0
Remove the sample SHA256
...
putting a full sha256 made the width of the table in the generated docs not fit on some screens
2015-09-01 10:07:03 -04:00
Toshio Kuratomi
8412adc4f9
Quote checksum description to fix docs
2015-08-06 21:10:03 -07:00
muffl0n
4f0cf6d2ca
Allow additional hashing algorithms. Directly use hashlib and check if
...
used algorithm is supported.
2015-08-06 14:49:07 -07:00
sysadmin75
cd8bfc7695
Adds tmp_dest option to get_url module.
...
Addresses the issue in ansible/ansible#9512
2015-08-06 16:37:48 -04:00
Brian Coca
587370e2e7
minor doc fixes to get_url
2015-07-27 14:20:38 -04:00
Brian Coca
76344db61e
fixed version added
2015-07-24 12:12:40 -04:00
Dan
777d736baa
Added header support
...
Added the ability to pass custom http headers to the fetch_url method.
2015-07-24 15:20:17 +01:00
Brian Coca
03a809a21c
added version_added to body_format in uri
2015-07-23 15:52:11 -04:00