ansible-mysql-query
ansible-mysql-query copied to clipboard
parse ~/.my.cnf
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
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.
I would really appreciate this feature.
Hey scuben, thanks for your interest and your input. I will try to allocate some time to implement this feature.