Commit Graph

74 Commits (b9696a349f8f1ec9b7e282bd52ff3dd75433e4a4)

Author SHA1 Message Date
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
9 years ago
Brian Coca 172bd21f41 Revert "Add mode option to the list" (#3946) 9 years ago
Victor Bocharsky 3573223aeb Add mode option to docstring for get_url (#3630)
Add mode option to the list
9 years ago
jctanner 4a3916bd46 Use the six import for urlsplit instead of importing directly. (#3902)
Fixes https://github.com/ansible/ansible/issues/16191
9 years ago
Toshio Kuratomi cb1093e085 Fix the six import 9 years ago
Toshio Kuratomi 469169f654 Be sure to import urllib.parse from somewhere 9 years ago
Michael Scherer cc99fe24fc Convert the network subfolder to py3/py2.4 syntax (#3690) 9 years ago
Brian Coca 9ae898c902 made note about slurp memory consumption 9 years ago
James Cammarata b1641ec486 Remove extraneous debug stuff from uri module left over from testing 9 years ago
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
9 years ago
jctanner 804a8e6378 Fix status check on get_url with file schemas and update the examples. (#3512)
Addresses #3511
9 years ago
Toshio Kuratomi a2f41dfb04 Give headers a default so that we can add to it. 9 years ago
Toshio Kuratomi d71b9bae89 If file attribs are specified set them even if file already exists.
Fixes #11821
9 years ago
Matt Martz 3c59eedb9b Don't pass follow_redirects to fetch_url, use module.params instead 9 years ago
Brian Coca 0bbb7ba38d Merge pull request #3135 from mscherer/improve_uri_doc
Fix non RFC 2606 domain name in doc
9 years ago
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.
9 years ago
Toshio Kuratomi 3853d2a9a6 Change parameter to type=path
Read as binary for python3 preparedness
9 years ago
Michael Scherer d81a6740ec Fix non RFC 2606 domain name in doc 9 years ago
Brian Coca 7162623e86 Merge pull request #2913 from msvab/devel
Clarify get_url timeout documentation
9 years ago
Matt Martz adf2125339 Indicate in notes that the dependency on httplib2 was removed for v2.1 9 years ago
Matt Martz 7f206fdfe8 Drop dependency on httplib2 in the uri module, instead using ansible.module_utils.urls 9 years ago
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
9 years ago
Michal Svab 2c3ef42d92 Clarify get_url timeout documentation 9 years ago
Brian Coca df222bed86 added missing version_added 9 years ago
techraf 49ec5a6a30 Added 'backup' parameter to get_url module 9 years ago
Brian Coca 1229adb36c Merge pull request #2609 from cspollar/devel
Fixed typo in uri module example
9 years ago
Brian Coca 292a83cba7 corrected version_added for new temp_dest feature 9 years ago
Brian Coca d2eaf33add Merge pull request #1887 from sysadmin75/9512_get_url_tmp_option2
Adds tmp_dest option to get_url module.
9 years ago
cspollar 34f7d7b068 Fixed typo in uri module example 9 years ago
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
9 years ago
Toshio Kuratomi 49ee5dd443 Remove debugging 9 years ago
Toshio Kuratomi 11833906b5 xmlcharrefreplace is only for encoding, not for decoding :-( 9 years ago
Brian Coca f33fba84c0 specified that uri must be uppercase 9 years ago
Brian Coca 144291120e restored quotes to checksum description to avoid breaking docs 9 years ago
JM 7943b3e6b0 description for the get_url module describing checksum verification before file download 9 years ago
Sam Mingo 7982d582d9 Update get_url.py
Fixed typo with header parameter to get_url in the documentation.
9 years ago
Colin Hutchinson ab50943887 Update get_url.py
use an abbreviated sha
9 years ago
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
9 years ago
Toshio Kuratomi 8412adc4f9 Quote checksum description to fix docs 9 years ago
muffl0n 4f0cf6d2ca Allow additional hashing algorithms. Directly use hashlib and check if
used algorithm is supported.
9 years ago
sysadmin75 cd8bfc7695 Adds tmp_dest option to get_url module.
Addresses the issue in ansible/ansible#9512
9 years ago
Brian Coca 587370e2e7 minor doc fixes to get_url 9 years ago
Brian Coca 76344db61e fixed version added 9 years ago
Dan 777d736baa Added header support
Added the ability to pass custom http headers to the fetch_url method.
9 years ago
Brian Coca 03a809a21c added version_added to body_format in uri 9 years ago
Brian Coca ca80b92233 added version_Added to get_url's force_basic_auth 9 years ago
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
9 years ago
Brian Coca 11c6e6a3f5 Merge pull request #1179 from hver/devel
Allow custom methods in uri module
9 years ago
Iiro Uusitalo afd0222184 uri.py is not using module_utils/urls.py from ansible core 9 years ago
Iiro Uusitalo 4b1b10fa20 Refactor force basic auth, now all modules which use fetch_url() can use force_basic_auth 9 years ago