Fix ssl_version default value. (#42955)

pull/43346/head
Thierry Bouvet 6 years ago committed by Matt Clay
parent c0e7f890fb
commit e0bb304f85

@ -0,0 +1,3 @@
---
bugfixes:
- fix default SSL version for docker modules https://github.com/ansible/ansible/issues/42897

@ -80,7 +80,6 @@ DEFAULT_TLS = False
DEFAULT_TLS_VERIFY = False DEFAULT_TLS_VERIFY = False
DEFAULT_TLS_HOSTNAME = 'localhost' DEFAULT_TLS_HOSTNAME = 'localhost'
MIN_DOCKER_VERSION = "1.7.0" MIN_DOCKER_VERSION = "1.7.0"
DEFAULT_SSL_VERSION = "1.0"
DEFAULT_TIMEOUT_SECONDS = 60 DEFAULT_TIMEOUT_SECONDS = 60
DOCKER_COMMON_ARGS = dict( DOCKER_COMMON_ARGS = dict(
@ -91,7 +90,7 @@ DOCKER_COMMON_ARGS = dict(
cacert_path=dict(type='str', aliases=['tls_ca_cert']), cacert_path=dict(type='str', aliases=['tls_ca_cert']),
cert_path=dict(type='str', aliases=['tls_client_cert']), cert_path=dict(type='str', aliases=['tls_client_cert']),
key_path=dict(type='str', aliases=['tls_client_key']), key_path=dict(type='str', aliases=['tls_client_key']),
ssl_version=dict(type='str', default=DEFAULT_SSL_VERSION), ssl_version=dict(type='str'),
tls=dict(type='bool', default=DEFAULT_TLS), tls=dict(type='bool', default=DEFAULT_TLS),
tls_verify=dict(type='bool', default=DEFAULT_TLS_VERIFY), tls_verify=dict(type='bool', default=DEFAULT_TLS_VERIFY),
debug=dict(type='bool', default=False) debug=dict(type='bool', default=False)

@ -61,8 +61,7 @@ options:
- tls_client_key - tls_client_key
ssl_version: ssl_version:
description: description:
- Provide a valid SSL version number. Default value determined by docker-py, currently 1.0. - Provide a valid SSL version number. Default value determined by ssl.py module.
default: "1.0"
tls: tls:
description: description:
- Secure the connection to the API by using TLS without verifying the authenticity of the Docker host - Secure the connection to the API by using TLS without verifying the authenticity of the Docker host

Loading…
Cancel
Save