Closed michaeldg closed 1 month ago
Hi @michaeldg and thanks for opening this issue. Unfortunately, I'm unable to reproduce your error with community.mysql 3.9.0 and MariaDB 10.6. Do you have the issue with both 3.9.0 and 3.5.1? Which database engine are you using? (MySQL, MariaDB, Galera) And what version?
When running your example, the GRANT OPTION gets removed from the user incorrect_run@'%'
. Is this what you're trying to do?
Is there any other user accounts with the same username incorrect_run
present in your database ?
Sometimes, running flush privileges;
unlock those kind of issues.
Please, tests the above command and report back any additional informations that could help us understand the issue.
@michaeldg thanks for reporting the issue! @laurent-indermuehle thanks for answering! As there's no feedback, closing the issue in order to keep the tracker clean. If any new comments feedback appear, we'll re-open it, thanks
SUMMARY
When trying to update the permissions of a user that has WITH GRANT OPTION, there is an error in the output.
ISSUE TYPE
COMPONENT NAME
community.mysql.user
ANSIBLE VERSION
COLLECTION VERSION
CONFIGURATION
OS / ENVIRONMENT
Both control host and target host Ubuntu 20.04.
STEPS TO REPRODUCE
These are the current permissions:
The difference on the old permissions is 'WITH GRANT OPTION'.
EXPECTED RESULTS
I expect the users 'incorrect_run' to end up with the same permissions as the user 'correct_run'.
ACTUAL RESULTS