Ensure we are passing ciphers to all url_get calls (#79718)
* Ensure we are passing ciphers to all url_get calls. Fixes #79717 * Add clog frag * Fix tests
This commit is contained in:
2
changelogs/fragments/79717-get-url-ciphers.yml
Normal file
2
changelogs/fragments/79717-get-url-ciphers.yml
Normal file
@ -0,0 +1,2 @@
|
||||
bugfixes:
|
||||
- get_url - Ensure we are passing ciphers to all url_get calls (https://github.com/ansible/ansible/issues/79717)
|
||||
@ -609,7 +609,7 @@ def main():
|
||||
start = datetime.datetime.utcnow()
|
||||
method = 'HEAD' if module.check_mode else 'GET'
|
||||
tmpsrc, info = url_get(module, url, dest, use_proxy, last_mod_time, force, timeout, headers, tmp_dest, method,
|
||||
unredirected_headers=unredirected_headers, decompress=decompress, use_netrc=use_netrc)
|
||||
unredirected_headers=unredirected_headers, decompress=decompress, ciphers=ciphers, use_netrc=use_netrc)
|
||||
result['elapsed'] = (datetime.datetime.utcnow() - start).seconds
|
||||
result['src'] = tmpsrc
|
||||
|
||||
|
||||
@ -6,7 +6,7 @@
|
||||
register: good_ciphers
|
||||
|
||||
- name: test bad cipher
|
||||
uri:
|
||||
get_url:
|
||||
url: https://{{ httpbin_host }}/get
|
||||
ciphers: ECDHE-ECDSA-AES128-SHA
|
||||
dest: '{{ remote_tmp_dir }}/bad_cipher_get.json'
|
||||
|
||||
Reference in New Issue
Block a user