mariadb: try local socket
Signed-off-by: Kevin Fenzi <kevin@scrye.com>
This commit is contained in:
parent
e56fa9edaf
commit
2095f5afc1
1 changed files with 5 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue