elmarx / ansible-mysql-query

Ansible custom module that allows you to set values in mysql databases
GNU General Public License v3.0
33 stars 27 forks source link

parse ~/.my.cnf #1

Open elmarx opened 8 years ago

elmarx commented 8 years ago

Currently login_user, login_password et al are mandatory, parse ~/.my.cnf just like https://github.com/ansible/ansible-modules-core/blob/devel/database/mysql/mysql_db.py

elmarx commented 7 years ago

Use MySQLdb.connect parameter as done in the fork: https://github.com/ulrikkold/ansible-mysql-query/commit/46f6c11723277187abc02e8b018ba2920d95a22f

Or, even better, use the ansible util-function mysql_connect like the core mysql_db does after importing.

scuben commented 5 years ago

I would really appreciate this feature.

elmarx commented 5 years ago

Hey scuben, thanks for your interest and your input. I will try to allocate some time to implement this feature.