Created
September 24, 2016 00:11
-
-
Save corny/dcf031a8af64c398efdaf0510e0c7566 to your computer and use it in GitHub Desktop.
Ansible task to fix `Plugin 'unix_socket' is not loaded` on MariaDB
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--- | |
- name: Enable plugin unix_socket | |
command: mysql --defaults-file=/etc/mysql/debian.cnf -e "INSTALL PLUGIN unix_socket SONAME 'auth_socket'" | |
register: mysql_result | |
changed_when: mysql_result.rc == 0 | |
failed_when: mysql_result.rc != 0 and 'already installed' not in mysql_result.stderr |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Thanks @corny
This is what worked for me: