We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
when running module and database name is in backticks like db.test.001
db.test.001
and state is absent schema will not be dropped
without backticks works good
if we have dots in name so we have to use backticks otherwise we get error:
FAILED! => {"changed": false, "msg": "error creating database: MySQL does not support database with more than 1 dots"}
Bug Report
mysql_db
$ ansible --version ansible [core 2.11.12]
# if using a version older than ansible-core 2.12 you should omit the '-t all' $ ansible-config dump --only-changed -t all
RHEL
- name: db task community.mysql.mysql_db: login_user: root login_password: "{{ WP_DB_PASS }}" login_host: "mysql.local" name: "`abc`" state: absent
changed: [localhost] => {"changed": true, "db": "abc", "db_list": ["abc"], "executed_commands": ["DROP DATABASE abc"]}
abc
ok: [localhost] => {"changed": false, "db": "`abc`", "db_list": ["`abc`"], "executed_commands": []}
The text was updated successfully, but these errors were encountered:
@yosefy hello, thanks for reporting the issue! Once someone has time, they'll take a closer look. I'll put the help_wanted label
Sorry, something went wrong.
No branches or pull requests
Summary
when running module and database name is in backticks like
db.test.001
and state is absent schema will not be dropped
without backticks works good
if we have dots in name so we have to use backticks otherwise we get error:
Issue Type
Bug Report
Component Name
mysql_db
Ansible Version
Configuration
OS / Environment
RHEL
Steps to Reproduce
Expected Results
changed: [localhost] => {"changed": true, "db": "abc", "db_list": ["abc"], "executed_commands": ["DROP DATABASE
abc
"]}Actual Results
ok: [localhost] => {"changed": false, "db": "`abc`", "db_list": ["`abc`"], "executed_commands": []}
Code of Conduct
The text was updated successfully, but these errors were encountered: