mirror of
https://github.com/dev-sec/ansible-collection-hardening
synced 2024-11-10 01:04:13 +00:00
one last time ...
Signed-off-by: Martin Schurz <Martin.Schurz@telekom.de>
This commit is contained in:
parent
fb22b242fe
commit
bf177add07
2 changed files with 2 additions and 1 deletions
|
@ -44,6 +44,7 @@
|
|||
community.mysql.mysql_query:
|
||||
query:
|
||||
- "DROP ROLE 'role_keep';"
|
||||
- "DROP ROLE IF EXISTS 'PUBLIC';" # OpenSuse default role interferes with inspec tests
|
||||
login_unix_socket: "{{ login_unix_socket | default(omit) }}"
|
||||
when:
|
||||
- mysql_role_support.rowcount[0] > 0
|
||||
|
|
|
@ -66,7 +66,7 @@
|
|||
AND USER NOT IN ('mysql.sys',
|
||||
'mysqlxsys',
|
||||
'mariadb.sys')
|
||||
{{ 'AND convert(is_role USING utf8) = "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
|
||||
|
|
Loading…
Reference in a new issue