add option to not summarize all privileges

We summarize ALL for mysql_info, but mysql_user needs to compare
actual privileges with the ones provided by ansible.
This commit is contained in:
Laurent Indermuehle 2023-10-11 11:14:54 +02:00
commit 34505c9b4f
No known key found for this signature in database
GPG key ID: 93FA944C9F34DD09
2 changed files with 5 additions and 5 deletions

View file

@ -566,7 +566,7 @@ class MySQL_Info(object):
user = line['User']
host = line['Host']
user_priv = privileges_get(self.module, self.cursor, user, host)
user_priv = privileges_get(self.module, self.cursor, user, host, maria_role=False, summarize_all=True)
if not user_priv:
self.module.warn("No privileges found for %s on host %s" % (user, host))