Skip to content

Commit

Permalink
remove json_query
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 0ff7632 commit 96756c9
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 @@ -86,14 +86,14 @@
- name: Create a fact for users without password or authentication_string
ansible.builtin.set_fact:
users_wo_auth: "{{ mysql_users_wo_passwords_or_auth_string.query_result.0.0 | community.general.json_query('users') }}"
users_wo_auth: "{{ mysql_users_wo_passwords_or_auth_string.query_result.0.0.users }}"
when:
- mysql_users_wo_passwords_or_auth_string.query_result is defined
- 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') }}"
users_wo_auth: "{{ mysql_users_wo_passwords.query_result.0.0.users }}"
when:
- mysql_users_wo_passwords.query_result is defined
- mysql_users_wo_passwords.rowcount.0 | int > 0
Expand Down

0 comments on commit 96756c9

Please sign in to comment.