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.
This commit is contained in:
Laurent Indermuehle 2023-09-22 14:24:19 +02:00
parent 7b7d2f5500
commit d7de96a601
No known key found for this signature in database
GPG key ID: 93FA944C9F34DD09

View file

@ -133,6 +133,7 @@ EXAMPLES = r'''
- 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 @@ users_privs:
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: