-
Notifications
You must be signed in to change notification settings - Fork 89
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
Syntax error on user updates CentOS6 with "hosts_all" enabled #39
Comments
@hluaces hey, thanks for reporting the issue! |
From the doc (for 2.9)
This feature can't be used when creating a user. Let's see what is this when we're modifying users.. |
Looks related to https://github.com/ansible-collections/community.general/pull/490/files |
Hey @Andersson007 , thanks to you for your reply and your work.
Deleting users works properly.
Yeah, that's on me, I apologize. I'm actually updating a user password on my task so I can confirm that it does happen on user updates. I'll edit the original issue to avoid further confusion. |
You're right! I modified the function fixing a bug but didn't modify its invocation. Your suggestion should work, testing now |
@hluaces no needed, i added CI tests |
once they passed i'll merge the PR and later today or tomorrow will release community.mysql 1.0.2 |
That's great, @Andersson007; and very quick. Thank you very much for your work. Right now I'm using the pip |
@hluaces you and community are welcome! Thank you for quick reporting! |
@hluaces the fix release tarball 1.0.2 is now available on https://galaxy.ansible.com/community/mysql , would be grateful for any feedback |
My CI passed correctly when installing the collection via Now I'll try to find out when it will be ported to the Thank you! |
@hluaces cool, thanks for the quick feedback! |
SUMMARY
Trying to update a mysql user using the
mysql_user
module withhosts_all: true
fails on CentOS6 machines which are being provisioned with Ansible 2.10.1:I've been playing around and found that changing the list in this line to a single element (to clarify, modify
[user]
foruser
) seems to make the module work. I assume that's not the root cause though.ISSUE TYPE
COMPONENT NAME
mysql_user
ANSIBLE VERSION
Works fine on 2.9.13.
CONFIGURATION
Reproducible with the default Ansible configuration.
OS / ENVIRONMENT
CentOS6 with 10.3.24-MariaDB.
7 and 8 works as expected.
STEPS TO REPRODUCE
Use the
mysql_user
module withhosts_all: true
to update a mysql user on a CentOS6. For example:EXPECTED RESULTS
Module should not throw an error.
ACTUAL RESULTS
Module ends with a mysql syntax error:
The text was updated successfully, but these errors were encountered: