diff --git a/apps/accounts/automations/change_secret/database/mongodb/main.yml b/apps/accounts/automations/change_secret/database/mongodb/main.yml index 7f0ae2c6e..517274263 100644 --- a/apps/accounts/automations/change_secret/database/mongodb/main.yml +++ b/apps/accounts/automations/change_secret/database/mongodb/main.yml @@ -30,6 +30,11 @@ login_host: "{{ jms_asset.address }}" login_port: "{{ jms_asset.port }}" login_database: "{{ jms_asset.specific.db_name }}" + ssl: "{{ jms_asset.specific.use_ssl }}" + ssl_ca_certs: "{{ jms_asset.specific.ca_cert }}" + ssl_certfile: "{{ jms_asset.specific.client_key }}" + connection_options: + - tlsAllowInvalidHostnames: "{{ jms_asset.specific.allow_invalid_cert}}" db: "{{ jms_asset.specific.db_name }}" name: "{{ account.username }}" password: "{{ account.secret }}" diff --git a/apps/accounts/automations/gather_accounts/database/mongodb/main.yml b/apps/accounts/automations/gather_accounts/database/mongodb/main.yml index fd7a296b7..d2478d7b5 100644 --- a/apps/accounts/automations/gather_accounts/database/mongodb/main.yml +++ b/apps/accounts/automations/gather_accounts/database/mongodb/main.yml @@ -11,6 +11,11 @@ login_host: "{{ jms_asset.address }}" login_port: "{{ jms_asset.port }}" login_database: "{{ jms_asset.specific.db_name }}" + ssl: "{{ jms_asset.specific.use_ssl }}" + ssl_ca_certs: "{{ jms_asset.specific.ca_cert }}" + ssl_certfile: "{{ jms_asset.specific.client_key }}" + connection_options: + - tlsAllowInvalidHostnames: "{{ jms_asset.specific.allow_invalid_cert}}" filter: users register: db_info