From e33b69d320fcae126905640822f9bdf611ae4862 Mon Sep 17 00:00:00 2001 From: Felix Hamme Date: Thu, 19 May 2022 11:33:24 +0200 Subject: [PATCH] mysql_user: add description for "update_password: on_new_username" argument --- plugins/modules/mysql_user.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/plugins/modules/mysql_user.py b/plugins/modules/mysql_user.py index 3ca0562..fe3bfef 100644 --- a/plugins/modules/mysql_user.py +++ b/plugins/modules/mysql_user.py @@ -118,8 +118,12 @@ options: description: - C(always) will update passwords if they differ. This affects I(password) and the combination of I(plugin), I(plugin_hash_string), I(plugin_auth_string). - C(on_create) will only set the password or the combination of plugin, plugin_hash_string, plugin_auth_string for newly created users. + - "C(on_new_username) works like C(on_create), but it tries to reuse an existing password: If one different user + with the same username exists, or multiple different users with the same username and equal ``plugin`` and + ``authentication_string`` attribute, the existing ``plugin`` and ``authentication_string`` are used for the + new user instead of the C(password), I(plugin), I(plugin_hash_string) or I(plugin_auth_string) argument." type: str - choices: [ always, on_create ] + choices: [ always, on_create, on_new_username ] default: always plugin: description: