perf: 优化数据库改密原子性 (#10663)

Co-authored-by: feng <1304903146@qq.com>
This commit is contained in:
fit2bot
2023-06-09 16:52:54 +08:00
committed by GitHub
parent b3c5674213
commit 2333a29a56
11 changed files with 13 additions and 44 deletions

View File

@@ -38,8 +38,8 @@
db: "{{ jms_asset.spec_info.db_name }}"
name: "{{ account.username }}"
password: "{{ account.secret }}"
ignore_errors: true
when: db_info is succeeded
register: change_info
- name: Verify password
mongodb_ping:
@@ -53,6 +53,3 @@
ssl_certfile: "{{ jms_asset.secret_info.client_key }}"
connection_options:
- tlsAllowInvalidHostnames: "{{ jms_asset.spec_info.allow_invalid_cert}}"
when:
- db_info is succeeded
- change_info is succeeded