better compare for utf8

Signed-off-by: Martin Schurz <Martin.Schurz@telekom.de>
This commit is contained in:
Martin Schurz 2023-11-11 04:22:24 +01:00
parent 0c8c96a535
commit fb22b242fe
2 changed files with 1 additions and 2 deletions

View file

@ -37,7 +37,6 @@
ansible.builtin.assert:
that:
- '"role_keep@" in mysql_users_list'
login_unix_socket: "{{ login_unix_socket | default(omit) }}"
when:
- mysql_role_support.rowcount[0] > 0

View file

@ -66,7 +66,7 @@
AND USER NOT IN ('mysql.sys',
'mysqlxsys',
'mariadb.sys')
{{ 'AND is_role COLLATE utf8mb4_general_ci = "N"' if mysql_role_support.rowcount[0] > 0 }};
{{ 'AND convert(is_role USING utf8) = "N"' if mysql_role_support.rowcount[0] > 0 }};
login_unix_socket: "{{ login_unix_socket | default(omit) }}"
register: mysql_users_wo_passwords_or_auth_string
check_mode: false