mirror of
https://github.com/ansible-collections/community.mysql.git
synced 2025-08-27 08:21:46 -07:00
mysql_user: return "password_changed" boolean (true if the user got a new password)
This commit is contained in:
parent
9bd9c72493
commit
21604ce58b
3 changed files with 27 additions and 15 deletions
|
@ -911,10 +911,11 @@ class Role():
|
|||
set_default_role_all=set_default_role_all)
|
||||
|
||||
if privs:
|
||||
changed, msg = user_mod(self.cursor, self.name, self.host,
|
||||
result = user_mod(self.cursor, self.name, self.host,
|
||||
None, None, None, None, None, None,
|
||||
privs, append_privs, subtract_privs, None,
|
||||
self.module, role=True, maria_role=self.is_mariadb)
|
||||
changed = result['changed']
|
||||
|
||||
if admin:
|
||||
self.role_impl.set_admin(admin)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue