diff --git a/tasks/main.yml b/tasks/main.yml index 978c512..34d17ac 100644 --- a/tasks/main.yml +++ b/tasks/main.yml @@ -8,6 +8,7 @@ - name: create mariadb dbs mysql_db: + login_unix_socket: /var/run/mysqld/mysqld.sock name: "{{ item.key }}" collation: "{{ item.value.collation | default('utf8_general_ci') }}" encoding: "{{ item.value.encoding | default('utf8') }}" @@ -15,6 +16,7 @@ - name: create mariadb users mysql_user: + login_unix_socket: /var/run/mysqld/mysqld.sock name: "{{ item.key }}" host: "{{ item.value.host | default('localhost') }}" password: "{{ item.value.password }}"