try to fix IS_ROLE
Signed-off-by: Sebastian Gumprich <[email protected]>
This commit is contained in:
1 parent
a6892904bf
commit
4c5a5deec6
1 file changed
+4
-2
@@ -56,7 +56,8 @@
|
||||
AND USER NOT IN ('mysql.sys',
|
||||
'mysqlxsys',
|
||||
'mariadb.sys')
|
||||
AND IFNULL((SELECT COLUMN_NAME FROM INFORMATION_SCHEMA.COLUMNS WHERE TABLE_NAME = 'user' AND COLUMN_NAME = 'IS_ROLE'), 'N') = 'N';
|
||||
AND ('IS_ROLE' NOT IN (SELECT column_name FROM information_schema.columns WHERE table_name = 'user')
|
||||
OR IFNULL(IS_ROLE, 'N') = 'N');
|
||||
login_unix_socket: "{{ login_unix_socket | default(omit) }}"
|
||||
register: mysql_users_wo_passwords_or_auth_string
|
||||
check_mode: false
|
||||
@@ -77,7 +78,8 @@
|
||||
AND USER NOT IN ('mysql.sys',
|
||||
'mysqlxsys',
|
||||
'mariadb.sys')
|
||||
AND IFNULL((SELECT COLUMN_NAME FROM INFORMATION_SCHEMA.COLUMNS WHERE TABLE_NAME = 'user' AND COLUMN_NAME = 'IS_ROLE'), 'N') = 'N';
|
||||
AND ('IS_ROLE' NOT IN (SELECT column_name FROM information_schema.columns WHERE table_name = 'user')
|
||||
OR IFNULL(IS_ROLE, 'N') = 'N');
|
||||
login_unix_socket: "{{ login_unix_socket | default(omit) }}"
|
||||
register: mysql_users_wo_passwords
|
||||
check_mode: false
|
||||
|
||||
Reference in new issue
Block a user