mirror of
https://github.com/dev-sec/ansible-collection-hardening
synced 2024-11-10 09:14:18 +00:00
better compare for utf8
Signed-off-by: Martin Schurz <Martin.Schurz@telekom.de>
This commit is contained in:
parent
0c8c96a535
commit
fb22b242fe
2 changed files with 1 additions and 2 deletions
|
@ -37,7 +37,6 @@
|
||||||
ansible.builtin.assert:
|
ansible.builtin.assert:
|
||||||
that:
|
that:
|
||||||
- '"role_keep@" in mysql_users_list'
|
- '"role_keep@" in mysql_users_list'
|
||||||
login_unix_socket: "{{ login_unix_socket | default(omit) }}"
|
|
||||||
when:
|
when:
|
||||||
- mysql_role_support.rowcount[0] > 0
|
- mysql_role_support.rowcount[0] > 0
|
||||||
|
|
||||||
|
|
|
@ -66,7 +66,7 @@
|
||||||
AND USER NOT IN ('mysql.sys',
|
AND USER NOT IN ('mysql.sys',
|
||||||
'mysqlxsys',
|
'mysqlxsys',
|
||||||
'mariadb.sys')
|
'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) }}"
|
login_unix_socket: "{{ login_unix_socket | default(omit) }}"
|
||||||
register: mysql_users_wo_passwords_or_auth_string
|
register: mysql_users_wo_passwords_or_auth_string
|
||||||
check_mode: false
|
check_mode: false
|
||||||
|
|
Loading…
Reference in a new issue