From 8fd4908542d0c5135be32377e0a36ddd0e9e8aff Mon Sep 17 00:00:00 2001 From: Patrick Neff Date: Mon, 24 Jan 2022 19:23:07 +0100 Subject: [PATCH] use linux socket --- tasks/main.yml | 3 +++ 1 file changed, 3 insertions(+) diff --git a/tasks/main.yml b/tasks/main.yml index cf9182f..f466af0 100644 --- a/tasks/main.yml +++ b/tasks/main.yml @@ -8,6 +8,7 @@ - name: Remove unnecessary root accounts. community.mysql.mysql_user: + login_unix_socket: /var/run/mysqld/mysqld.sock name: root host: "{{ item }}" state: absent @@ -18,6 +19,7 @@ - name: Remove unnecessary anonymous accounts. community.mysql.mysql_user: + login_unix_socket: /var/run/mysqld/mysqld.sock name: "" host: "{{ item }}" state: absent @@ -28,6 +30,7 @@ - name: Remove test database. community.mysql.mysql_db: + login_unix_socket: /var/run/mysqld/mysqld.sock db: tests state: absent