perf: mysql pg playbook

This commit is contained in:
feng
2025-08-13 15:12:43 +08:00
committed by ZhaoJiSen
parent d9d034488f
commit ab30bfb2d2
3 changed files with 6 additions and 2 deletions

View File

@@ -39,7 +39,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