From eeadb037937ee1b5da6e084b98acb8f9c3242e2f Mon Sep 17 00:00:00 2001
From: Guilhem Moulin <guilhem@fripost.org>
Date: Tue, 11 Oct 2022 16:05:48 +0200
Subject: =?UTF-8?q?Remove=20module=20=E2=80=98mysql=5Fuser2=E2=80=99.?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit

These days upstream's ‘mysql_user’ is good enough.
---
 roles/common-SQL/tasks/main.yml | 10 +++++-----
 1 file changed, 5 insertions(+), 5 deletions(-)

(limited to 'roles/common-SQL/tasks')

diff --git a/roles/common-SQL/tasks/main.yml b/roles/common-SQL/tasks/main.yml
index 927f567..7e59f60 100644
--- a/roles/common-SQL/tasks/main.yml
+++ b/roles/common-SQL/tasks/main.yml
@@ -4,7 +4,7 @@
     packages:
     - mariadb-common
     - mariadb-server
-    - python-mysqldb
+    - python3-mysqldb
     # for the 'mysql_' munin plugin
     - libcache-cache-perl
 
@@ -23,12 +23,12 @@
 
 # XXX Dirty fix for #742046
 - name: Force root to use UNIX permissions
-  mysql_user2: name=root password="" auth_plugin=unix_socket soname=auth_socket.so
-               state=present
+  mysql_user: name=root password="" plugin=unix_socket
+              state=present
 
 - name: Disallow anonymous and TCP/IP root login
-  mysql_user2: name={{ item.name|default('') }} host={{ item.host }}
-               state=absent
+  mysql_user: name={{ item.name|default('') }} host={{ item.host }}
+              state=absent
   with_items:
     - {             host: '{{ inventory_hostname_short }}' }
     - {             host: 'localhost' }
-- 
cgit v1.2.3