Benjamin JOLIVOT
9baf95bcc4
Add status_code & failed:false when status==200 ( #21457 )
...
* Add status_code & failed:false when status==200
* remove failed=false, it's broking tests
2017-02-15 14:30:06 -08:00
Tim Rupp
0fcc6edf2b
Replace expanduser with type path
...
This patch removes the use of expanduser and replaces it with
type 'path' for the option. This is related to #12263 .
2017-02-13 11:15:13 -05:00
Matt Martz
829c0b8f62
Update validate-modules ( #20932 )
...
* Update validate-modules
* Validates ANSIBLE_METADATA
* Ensures imports happen after documentation vars
* Some pep8 cleanup
* Clean up some left over unneeded code
* Update modules for new module guidelines and validate-modules checks
* Update imports for ec2_vpc_route_table and ec2_vpc_nat_gateway
2017-02-02 11:45:22 -08:00
Matt Clay
d913f69ba1
PEP 8 W291 whitespace cleanup.
2017-01-27 17:08:02 -08:00
James Cammarata
8afa090417
Resolving differences in core modules post-merge
2016-12-08 11:25:36 -05:00
Toshio Kuratomi
7319104552
Refreshed metadata for core modules
2016-12-08 11:25:35 -05:00
Dag Wieers
c22e383836
Ensure proper error when fetch_url returns status -1
...
When using a file:// or ftp:// URL the normal provisions that a non-200 status code means error have been disabled.
But the common error status -1 from fetch_url is not properly returning an error message.
This fix ensures that if the status code returns -1, we return a proper error message.
This fixes #3563
2016-12-08 11:25:32 -05:00
John R Barker
25b6492d37
Bulk spelling improvement to modules-core ( #5225 )
...
* Correct spelling mistakes
* Correct more spelling issues
* merge conflict
* Revert typo in parms
2016-12-08 11:25:20 -05:00
Martin Matuška
3366a95765
Force download if checksums do not match ( #4262 )
2016-12-08 11:25:04 -05:00
afunix
f2c324facc
Updated get_url module to process FTP results correctly [ #3661 ] ( #4601 )
2016-12-08 11:25:02 -05:00
Timothy Appnel
5b00b40c22
Fixes get_url examples in docs and applies native YAML syntax. ( #4474 )
2016-12-08 11:24:55 -05:00
Roman
7b547e3e0b
get_url headers param values parsing ( #4245 )
2016-12-08 11:24:49 -05:00
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
Michael Scherer
c0217e14a7
Convert the network subfolder to py3/py2.4 syntax ( #3690 )
2016-12-08 11:24:29 -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
4c9f9973dd
If file attribs are specified set them even if file already exists.
...
Fixes #11821
2016-12-08 11:24:13 -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
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
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
87c8d016dc
added version_Added to get_url's force_basic_auth
2016-12-08 11:23:22 -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
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
Greg DeKoenigsberg
eb881d7d5d
Proper author info for all remaining modules
2016-12-08 11:23:07 -05:00
Schmitt Christian
cc71372182
Removed the wrong Note
...
Currently as already in the description, this module works with proxy settings.
2016-12-08 11:22:54 -05:00
Toshio Kuratomi
34d65647bf
Move from md5 to sha1 to work on FIPS-140 enabled systems
2016-12-08 11:22:25 -05:00
Michael DeHaan
677ed39cb4
Renames.
2016-12-08 11:22:25 -05:00