Skip to content

Commit

Permalink
move rowcount in condition
Browse files Browse the repository at this point in the history
Signed-off-by: Martin Schurz <[email protected]>
  • Loading branch information
schurzi committed Feb 23, 2023
1 parent 8a90fb2 commit 06687d7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion roles/mysql_hardening/tasks/mysql_secure_installation.yml
Original file line number Diff line number Diff line change
Expand Up @@ -90,4 +90,4 @@
- DROP USER {{ (mysql_users_wo_passwords.query_result | default(mysql_users_wo_passwords_or_auth_string.query_result)).0.0.users }}
login_unix_socket: "{{ login_unix_socket | default(omit) }}"
when:
- (mysql_users_wo_passwords_or_auth_string | default(mysql_users_wo_passwords)).rowcount.0 | int > 0
- mysql_users_wo_passwords_or_auth_string.rowcount.0 | default(mysql_users_wo_passwords.rowcount.0) | int > 0

0 comments on commit 06687d7

Please sign in to comment.