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

@@ -28,8 +28,8 @@
password: "{{ account.secret }}"
host: "%"
priv: "{{ account.username + '.*:USAGE' if db_name == '' else db_name + '.*:ALL' }}"
ignore_errors: true
when: db_info is succeeded
register: change_info
- name: Verify password
community.mysql.mysql_info:
@@ -38,6 +38,3 @@
login_host: "{{ jms_asset.address }}"
login_port: "{{ jms_asset.port }}"
filter: version
when:
- db_info is succeeded
- change_info is succeeded