mirror of
https://github.com/ansible-collections/community.mysql.git
synced 2025-07-27 23:21:27 -07:00
fix users with multiple schemas with ALL PRIVILEGES only showing first
This commit is contained in:
parent
40f47f6828
commit
0bcfdb72ab
2 changed files with 18 additions and 12 deletions
|
@ -15,7 +15,10 @@
|
|||
# ================================ Prepare ==============================
|
||||
- name: Mysql_info users_privs | Create databases
|
||||
community.mysql.mysql_db:
|
||||
name: users_privs_db
|
||||
name:
|
||||
- users_privs_db
|
||||
- users_privs_db2
|
||||
- users_privs_db3
|
||||
state: present
|
||||
|
||||
- name: Mysql_info users_privs | Create tables
|
||||
|
@ -74,7 +77,9 @@
|
|||
- name: users_privs_multi
|
||||
priv:
|
||||
'mysql.*': 'SELECT'
|
||||
'users_privs_db.*': 'SELECT'
|
||||
'users_privs_db.*': 'ALL'
|
||||
'users_privs_db2.*': 'ALL'
|
||||
'users_privs_db3.*': 'ALL'
|
||||
- name: users_privs_usage_only
|
||||
priv:
|
||||
'*.*': 'USAGE'
|
||||
|
@ -194,7 +199,10 @@
|
|||
|
||||
- name: Mysql_info users_privs | Cleanup databases
|
||||
community.mysql.mysql_db:
|
||||
name: users_privs_db
|
||||
name:
|
||||
- users_privs_db
|
||||
- users_privs_db2
|
||||
- users_privs_db3
|
||||
state: absent
|
||||
|
||||
- name: Mysql_info users_privs | Cleanup sql file for the procedure
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue