diff --git a/plugins/doc_fragments/ssl_options.py b/plugins/doc_fragments/ssl_options.py index efd330b7d..ee69829ae 100644 --- a/plugins/doc_fragments/ssl_options.py +++ b/plugins/doc_fragments/ssl_options.py @@ -58,6 +58,13 @@ class ModuleDocFragment(object): type: str aliases: - tlsCertificateKeyFilePassword + tls_use_system_ca: + description: + - Use the system-wide CA certificate store. + type: bool + default: true + aliases: + - tlsUseSystemCA auth_mechanism: description: - Authentication type. diff --git a/plugins/module_utils/mongodb_common.py b/plugins/module_utils/mongodb_common.py index 8c9f41b3e..2b1997255 100644 --- a/plugins/module_utils/mongodb_common.py +++ b/plugins/module_utils/mongodb_common.py @@ -145,6 +145,7 @@ def mongodb_common_argument_spec(ssl_options=True): ssl_certfile=dict(type='str', default=None, aliases=['tlsCertificateKeyFile']), ssl_keyfile=dict(type='str', default=None, no_log=True), ssl_pem_passphrase=dict(type='str', default=None, no_log=True, aliases=['tlsCertificateKeyFilePassword']), + tls_use_system_ca=dict(type='bool', required=False, default=True, aliases=['tlsUseSystemCA']), auth_mechanism=dict(type='str', required=False, default=None,