Skip to content

Commit

Permalink
coe correct list level
Browse files Browse the repository at this point in the history
Signed-off-by: Martin Schurz <Martin.Schurz@t-systems.com>
  • Loading branch information
schurzi committed Feb 23, 2023
1 parent b6171cf commit 35700e2
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions roles/mysql_hardening/tasks/mysql_secure_installation.yml
Original file line number Diff line number Diff line change
Expand Up @@ -89,14 +89,14 @@
users_wo_auth: "{{ mysql_users_wo_passwords_or_auth_string.query_result.0.0 | community.general.json_query('users') }}"
when:
- mysql_users_wo_passwords_or_auth_string.query_result is defined
- mysql_users_wo_passwords_or_auth_string.rowcount > 0
- mysql_users_wo_passwords_or_auth_string.rowcount.0 | int > 0

- name: Create a fact for users without password
ansible.builtin.set_fact:
users_wo_auth: "{{ mysql_users_wo_passwords.query_result.0.0 | community.general.json_query('users') }}"
when:
- mysql_users_wo_passwords.query_result is defined
- mysql_users_wo_passwords.rowcount > 0
- mysql_users_wo_passwords.rowcount.0 | int > 0

- name: Ensure that there are no users without password or authentication_string
community.mysql.mysql_query:
Expand Down

0 comments on commit 35700e2

Please sign in to comment.