diff --git a/plugins/module_utils/implementations/mariadb/user.py b/plugins/module_utils/implementations/mariadb/user.py index ecf867e..fa9ecdf 100644 --- a/plugins/module_utils/implementations/mariadb/user.py +++ b/plugins/module_utils/implementations/mariadb/user.py @@ -30,6 +30,7 @@ def server_supports_password_expire(cursor): return LooseVersion(version) >= LooseVersion("10.4.3") + def get_tls_requires(cursor, user, host): """Get user TLS requirements. Reads directly from mysql.user table allowing for a more diff --git a/plugins/module_utils/implementations/mysql/user.py b/plugins/module_utils/implementations/mysql/user.py index eed2e25..700c355 100644 --- a/plugins/module_utils/implementations/mysql/user.py +++ b/plugins/module_utils/implementations/mysql/user.py @@ -34,6 +34,7 @@ def server_supports_password_expire(cursor): return LooseVersion(version) >= LooseVersion("5.7") + def get_tls_requires(cursor, user, host): """Get user TLS requirements. We must use SHOW GRANTS because some tls fileds are encoded.