From e18529e6e180deb2252e535f93f8c680a1ac00d9 Mon Sep 17 00:00:00 2001 From: Alan Orth Date: Tue, 29 Dec 2020 10:40:13 +0200 Subject: [PATCH] roles/mariadb: Update service name As of MariaDB 10.5 the service name and binaries have changed from mysql, mysqld, etc to mariadbd. See: https://mariadb.com/kb/en/upgrading-from-mariadb-104-to-mariadb-105/ --- roles/mariadb/handlers/main.yml | 4 ++-- roles/mariadb/tasks/main.yml | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/roles/mariadb/handlers/main.yml b/roles/mariadb/handlers/main.yml index 42c533e..f2a399f 100644 --- a/roles/mariadb/handlers/main.yml +++ b/roles/mariadb/handlers/main.yml @@ -1,5 +1,5 @@ --- -- name: restart mysql - systemd: name=mysql state=restarted +- name: restart mariadbd + systemd: name=mariadbd state=restarted # vim: set ts=2 sw=2: diff --git a/roles/mariadb/tasks/main.yml b/roles/mariadb/tasks/main.yml index 43d35c4..c3fe10b 100644 --- a/roles/mariadb/tasks/main.yml +++ b/roles/mariadb/tasks/main.yml @@ -26,7 +26,7 @@ - name: Create system my.cnf template: src=my.cnf.j2 dest=/etc/mysql/my.cnf owner=root group=root mode=0644 notify: - - restart mysql + - restart mariadbd tags: mariadb # 'localhost' needs to be the last item for idempotency, see