From cc03364fed1fb510cc63a5ee201510608e6567e5 Mon Sep 17 00:00:00 2001 From: Laurent Indermuehle Date: Fri, 22 Sep 2023 14:24:19 +0200 Subject: [PATCH] document that sha256 and caching_sha2 plugins doesn't work properly Even if you use print_identified_with_as_hex to prevent the password to contains binary characters. I think this is because PyMySQL and mysqlclient wrap the password in quote. We could try to convert to another python connector, like mysql-connector-python. --- plugins/modules/mysql_info.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/plugins/modules/mysql_info.py b/plugins/modules/mysql_info.py index 47fc56f7..8f5fb355 100644 --- a/plugins/modules/mysql_info.py +++ b/plugins/modules/mysql_info.py @@ -133,6 +133,7 @@ - users_privs register: result +# Don't work with sha256_password and cache_sha2_password - name: Clone users on another server - Step 2 community.mysql.mysql_user: name: "{{ item.name }}" @@ -219,7 +220,8 @@ description: Information about users accounts. The output can be used as an input of the mysql_user plugin. Useful when migrating accounts to a new server or to - create an inventory. Does not support proxy privileges. + create an inventory. Does not support proxy privileges. Cause issue with + authentications plugins sha256_password and caching_sha2_password. returned: if not excluded by filter type: dict sample: