Brian Coca
01490688f4
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-12-08 11:24:37 -05:00
Brian Coca
34b94ec4c4
Revert "Add mode option to the list" ( #3946 )
2016-12-08 11:24:37 -05:00
Victor Bocharsky
6037684d23
Add mode option to docstring for get_url ( #3630 )
...
Add mode option to the list
2016-12-08 11:24:37 -05:00
jctanner
48f096b52c
Use the six import for urlsplit instead of importing directly. ( #3902 )
...
Fixes https://github.com/ansible/ansible/issues/16191
2016-12-08 11:24:36 -05:00
Toshio Kuratomi
79d12db02f
Fix the six import
2016-12-08 11:24:35 -05:00
Toshio Kuratomi
8ba0af5df3
Be sure to import urllib.parse from somewhere
2016-12-08 11:24:35 -05:00
Michael Scherer
c0217e14a7
Convert the network subfolder to py3/py2.4 syntax ( #3690 )
2016-12-08 11:24:29 -05:00
Brian Coca
ca7defeee5
made note about slurp memory consumption
2016-12-08 11:24:27 -05:00
James Cammarata
124c4b94c1
Remove extraneous debug stuff from uri module left over from testing
2016-12-08 11:24:23 -05:00
James Cammarata
50cd8b0aa5
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-12-08 11:24:23 -05:00
jctanner
56f5ca37af
Fix status check on get_url with file schemas and update the examples. ( #3512 )
...
Addresses #3511
2016-12-08 11:24:20 -05:00
Toshio Kuratomi
6fae6c7b2d
Give headers a default so that we can add to it.
2016-12-08 11:24:14 -05:00
Toshio Kuratomi
4c9f9973dd
If file attribs are specified set them even if file already exists.
...
Fixes #11821
2016-12-08 11:24:13 -05:00
Matt Martz
fe22ee9423
Don't pass follow_redirects to fetch_url, use module.params instead
2016-12-08 11:24:10 -05:00
Toshio Kuratomi
9551e51607
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-12-08 11:24:08 -05:00
Toshio Kuratomi
0400efa3f8
Change parameter to type=path
...
Read as binary for python3 preparedness
2016-12-08 11:24:08 -05:00
Michael Scherer
776d079e6b
Fix non RFC 2606 domain name in doc
2016-12-08 11:24:08 -05:00
Matt Martz
fada638d88
Indicate in notes that the dependency on httplib2 was removed for v2.1
2016-12-08 11:24:07 -05:00
Matt Martz
a18206355a
Drop dependency on httplib2 in the uri module, instead using ansible.module_utils.urls
2016-12-08 11:24:07 -05:00
Brian Coca
5b07831a11
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-12-08 11:24:05 -05:00
Michal Svab
0676ecc03c
Clarify get_url timeout documentation
2016-12-08 11:24:03 -05:00
techraf
7d09792758
Added 'backup' parameter to get_url module
2016-12-08 11:24:00 -05:00
Brian Coca
42d0ce8744
corrected version_added for new temp_dest feature
2016-12-08 11:23:50 -05:00
cspollar
7ac010977b
Fixed typo in uri module example
2016-12-08 11:23:50 -05:00
sysadmin75
12c2c2b436
Adds tmp_dest option to get_url module. Addresses the issue in ansible/ansible#9512
2016-12-08 11:23:45 -05:00
Toshio Kuratomi
f6353a548c
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
2016-12-08 11:23:44 -05:00
Toshio Kuratomi
d5f3ac2a1d
Remove debugging
2016-12-08 11:23:41 -05:00
Toshio Kuratomi
931fa9b6b2
xmlcharrefreplace is only for encoding, not for decoding :-(
2016-12-08 11:23:41 -05:00
Brian Coca
0540769677
specified that uri must be uppercase
2016-12-08 11:23:41 -05:00
Brian Coca
5b1a508d6a
restored quotes to checksum description to avoid breaking docs
2016-12-08 11:23:39 -05:00
muszynski@so1.net
2e3ad2b80a
description for the get_url module describing checksum verification before file download
2016-12-08 11:23:39 -05:00
Sam Mingo
75473c0fd0
Update get_url.py
...
Fixed typo with header parameter to get_url in the documentation.
2016-12-08 11:23:35 -05:00
Colin Hutchinson
9d77cef5be
Remove the sample SHA256
...
putting a full sha256 made the width of the table in the generated docs not fit on some screens
2016-12-08 11:23:34 -05:00
Toshio Kuratomi
1f9580f257
Quote checksum description to fix docs
2016-12-08 11:23:30 -05:00
muffl0n
6482d1344a
Allow additional hashing algorithms. Directly use hashlib and check if used algorithm is supported.
2016-12-08 11:23:28 -05:00
Brian Coca
3b94910d4e
minor doc fixes to get_url
2016-12-08 11:23:26 -05:00
Brian Coca
e5fe763474
fixed version added
2016-12-08 11:23:26 -05:00
Dan
5b4e7c797f
Added header support
...
Added the ability to pass custom http headers to the fetch_url method.
2016-12-08 11:23:25 -05:00
Brian Coca
f15ce1433a
added version_added to body_format in uri
2016-12-08 11:23:25 -05:00
Brian Coca
87c8d016dc
added version_Added to get_url's force_basic_auth
2016-12-08 11:23:22 -05:00
Iiro Uusitalo
d6fc0ac5be
uri.py is not using module_utils/urls.py from ansible core
2016-12-08 11:23:21 -05:00
Hennadiy (Gena) Verkh
098126807d
Update uri.py
...
Added methods 'TRACE', 'CONNECT' from https://www.rfc-editor.org/rfc/rfc2616.txt , section 5.1.1
Added method 'REFRESH'
2016-12-08 11:23:19 -05:00
Hennadiy (Gena) Verkh
852c232b2d
Removed method restriction in uri module
2016-12-08 11:23:19 -05:00
Iiro Uusitalo
b92dabb9fb
Refactor force basic auth, now all modules which use fetch_url() can use force_basic_auth
2016-12-08 11:23:19 -05:00
James Meickle
8197d7e640
Change uri debug example
2016-12-08 11:23:15 -05:00
Annika Backstrom
6b2c89a422
Force redownload if sha256sum does not match
2016-12-08 11:23:13 -05:00
Toshio Kuratomi
5118d0e3b1
Add note about redirects proxies
...
Fixes #1574
2016-12-08 11:23:12 -05:00
Toshio Kuratomi
2e7dcf3317
Small cleanups. * Import url(lib|parse|lib2) if needed by the module rather than relying on module_utils.urls to do so. * Remove stdlib modules from requirements * Use the if __name__ conditional for invoking main()
2016-12-08 11:23:11 -05:00
murdochr
aae140e6cd
Change docs to reflect correct when syntax for matching variable strings as per MD's forum post as this fails with unhelpful error otherwise.
...
https://groups.google.com/forum/#!topic/ansible-project/D2hQzZ_jNuM
2016-12-08 11:23:11 -05:00
Greg DeKoenigsberg
eb881d7d5d
Proper author info for all remaining modules
2016-12-08 11:23:07 -05:00