From 96756c945980db52f717ece2405c4eca2472bf1a Mon Sep 17 00:00:00 2001 From: Martin Schurz Date: Thu, 23 Feb 2023 23:55:04 +0100 Subject: [PATCH] remove json_query Signed-off-by: Martin Schurz --- roles/mysql_hardening/tasks/mysql_secure_installation.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/roles/mysql_hardening/tasks/mysql_secure_installation.yml b/roles/mysql_hardening/tasks/mysql_secure_installation.yml index a5277048c..163bbcc72 100644 --- a/roles/mysql_hardening/tasks/mysql_secure_installation.yml +++ b/roles/mysql_hardening/tasks/mysql_secure_installation.yml @@ -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