-
Notifications
You must be signed in to change notification settings - Fork 90
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
mysql_user expires password on second run #295
Comments
I just managed to get it to stop expiring passwords. I substituted The task is now marked as EDIT: I just noticed the first version ignores |
@dotneutron hello, welcome to the project and thanks for reporting the issue!
Thanks! |
Hello
A little more description about "password / encrypted" is only for "mysql_native_password" and otherwise use
This relates to issue 334 as the logic on on_create only prevents updates on "password" but not on plugin,plugin_auth_string,... |
Does anyone wants to raise a PR? We need:
|
Is the information we added in PR342 for issue 334 enough to clarify? |
@dotneutron could you please take a look at #342. If it clarifies things, could you please close the issue? |
I'll close this for now. If any questions, we can re-open it at any time later |
SUMMARY
I want to create non-root users with
mysql_user
. Everything goes fine when I run the playbook once. The second time I run it, the task is again marked aschanged
despite havingmsg: User unchanged
in the result. The issue is thatpassword_expired
is changed totrue
inside themysql.user
table after the second run, which makes it impossible for users to log in without a workaround. All subsequent runs mark the task asok
.ISSUE TYPE
COMPONENT NAME
mysql_user
ANSIBLE VERSION
COLLECTION VERSION
CONFIGURATION
OS / ENVIRONMENT
Host OS: Ubuntu 20.04 LTS
Docker MySQL OS: See Dockerfile for
mysql:8
MySQL client: PyMySQL
MySQL settings:
STEPS TO REPRODUCE
EXPECTED RESULTS
The task should not expire the users' passwords on the second run or cause any other changes.
ACTUAL RESULTS
Despite the modification(s) caused by the second run, the task result has
msg: User unchanged
.The text was updated successfully, but these errors were encountered: