From 2095f5afc1c14bcef15a9a4128fe91a997713dd7 Mon Sep 17 00:00:00 2001 From: Kevin Fenzi Date: Sat, 9 Nov 2019 22:51:23 +0000 Subject: [PATCH] mariadb: try local socket Signed-off-by: Kevin Fenzi --- roles/mariadb_server/tasks/main.yml | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/roles/mariadb_server/tasks/main.yml b/roles/mariadb_server/tasks/main.yml index 528653e9a2..a4f7eb10e6 100644 --- a/roles/mariadb_server/tasks/main.yml +++ b/roles/mariadb_server/tasks/main.yml @@ -23,7 +23,11 @@ service: name=mariadb enabled=yes state=started - name: set mariaddb root user password - mysql_user: name=root password={{ mariadb_root_password }} check_implicit_admin=true + mysql_user: + name: root + password: "{{ mariadb_root_password }}" + check_implicit_admin: true + login_unix_socket: /var/lib/mysql/mysql.sock - name: create .my.cnf file for future logins template: src=dotmy.cnf.j2 dest=/root/.my.cnf owner=root group=root mode=0700