fix: automation mysql priv and postgresql finally test the connectivity

This commit is contained in:
feng
2025-08-13 15:31:09 +08:00
committed by feng626
parent 8793003d18
commit e6dca2ec14
4 changed files with 6 additions and 6 deletions

View File

@@ -36,7 +36,8 @@
name: "{{ account.username }}"
password: "{{ account.secret }}"
host: "%"
priv: "{{ account.username + '.*:USAGE' if db_name == '' else db_name + '.*:ALL' }}"
priv: "{{ omit if db_name == '' else db_name + '.*:ALL' }}"
append_privs: "{{ db_name != '' | bool }}"
ignore_errors: true
when: db_info is succeeded