ansible/ansible — pull request #781 by gottwald (2012-08-03 10:44:03+00:00)
Title: login_unix_socket option for mysql modules

Hi there,

I added a login_unix_socket option for two mysql modules.
This is very handy if you have more than one mysql installation on a system or if you have completely custom paths.

Can be used in a Playbook like this:

- name: Create database
action: mysql_db login_unix_socket=/path/to/sock login_user="root" login_password="mySecretPw" db=dbname state=present

- name: Create db-user
action: mysql_user login_unix_socket=/path/to/sock login_user="root" login_password="mySecretPw" name=username password="mySecretPw" priv=*.*:ALL state=present

Regards

Ingo