Commit graph

63 commits

Author SHA1 Message Date
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
Brian Coca
ca80b92233 added version_Added to get_url's force_basic_auth 2015-07-19 17:42:12 -04:00
Brian Coca
7ac642f406 Merge pull request #153 from woltage/devel
Refactor force basic auth, now all modules which use fetch_url() can use force_basic_auth
2015-07-19 17:40:36 -04:00
Brian Coca
11c6e6a3f5 Merge pull request #1179 from hver/devel
Allow custom methods in uri module
2015-07-10 09:50:51 -04:00
Iiro Uusitalo
afd0222184 uri.py is not using module_utils/urls.py from ansible core 2015-07-10 08:42:01 +03:00
Iiro Uusitalo
4b1b10fa20 Refactor force basic auth, now all modules which use fetch_url() can use force_basic_auth 2015-07-10 08:40:04 +03:00
Hennadiy (Gena) Verkh
f190f98b06 Update uri.py
Added methods 'TRACE', 'CONNECT' from https://www.rfc-editor.org/rfc/rfc2616.txt, section 5.1.1
Added method 'REFRESH'
2015-07-09 11:39:46 +02:00
Toshio Kuratomi
27e1aa7d10 Merge pull request #1634 from Eronarn/devel
Change uri debug example
2015-07-01 08:10:40 -07:00
Brian Coca
b3d5479612 Merge pull request #687 from abackstrom/sha256-mismatch-redownload
get_url: Force redownload if sha256sum does not match
2015-06-29 23:30:03 -04:00
James Meickle
73390f8ecc Change uri debug example 2015-06-29 13:23:03 -04:00
Toshio Kuratomi
280ccfbb78 Add note about redirects proxies
Fixes #1574
2015-06-25 09:28:39 -07:00
Toshio Kuratomi
4519dd5f4d 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()
2015-06-24 06:51:00 -07:00
murdochr
9040c2f75c 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
2015-06-20 21:36:10 +01:00
Greg DeKoenigsberg
2a5f0bde87 Proper author info for all remaining modules 2015-06-15 15:53:30 -04:00
Toshio Kuratomi
5983d64d77 Properly flip default for verifying server cert. Add nice error messages when the cert is invalid 2015-05-28 15:33:21 -07:00
Toshio Kuratomi
7fea93835c Change uri module to validate ssl certs by default 2015-05-28 15:05:00 -07:00
whiter
ba35cb8173 Doc update to highlight use of body_type parameter 2015-05-28 15:27:46 +10:00