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_db module should use option --defaults-file
instead of --defaults-extra-file
#34488
mysql_db module should use option --defaults-file
instead of --defaults-extra-file
#34488
Comments
@iredmail Greetings! Thanks for taking the time to open this issue. In order for the community to handle your issue effectively, we need a bit more information. Here are the items we could not find in your description:
Please set the description of this issue with this template: |
resolved_by ansible-collections/community.general#468 |
@iredmail thanks for reporting! |
close_me |
closed via ansible-collections/community.general#468 |
ISSUE TYPE
COMPONENT NAME
mysql_db
ANSIBLE VERSION
CONFIGURATION
None.
OS / ENVIRONMENT
macOS 10.13.2
SUMMARY
mysql_db
module uses mysql command line option--defaults-extra-file=
instead of--defaults-file
, if file~/.my.cnf
exists, but we use another.my.cnf
file inmysql_db
module withstate=import
, sql connection will fail.STEPS TO REPRODUCE
Task:
Error message:
EXPECTED RESULTS
Expect Ansible to use
/root/.my.cnf-myuser
and do not load any other.my.cnf
file.I replaced
--defaults-extra-file=
by--defaults-file=
inmysql_db
module source file, run same task, it works fine.The text was updated successfully, but these errors were encountered: