From 9039847b88dd737de1b92b08cba67cbfe9a2d840 Mon Sep 17 00:00:00 2001 From: Guilhem Moulin Date: Sun, 9 Dec 2018 18:51:23 +0100 Subject: Use mariadb.service not mysql.service. Since d8d07afe49e69114f8deb807031bec71a327d3ae our MySQL flavor is MariaDB. --- roles/common-SQL/handlers/main.yml | 4 ++-- roles/common-SQL/tasks/main.yml | 8 ++++---- 2 files changed, 6 insertions(+), 6 deletions(-) (limited to 'roles/common-SQL') diff --git a/roles/common-SQL/handlers/main.yml b/roles/common-SQL/handlers/main.yml index d1d355f..eae5efd 100644 --- a/roles/common-SQL/handlers/main.yml +++ b/roles/common-SQL/handlers/main.yml @@ -1,6 +1,6 @@ --- -- name: Restart MySQL - service: name=mysql state=restarted +- name: Restart MariaDB + service: name=mariadb state=restarted - name: Restart munin-node service: name=munin-node state=restarted diff --git a/roles/common-SQL/tasks/main.yml b/roles/common-SQL/tasks/main.yml index d6ab1c4..3df2cab 100644 --- a/roles/common-SQL/tasks/main.yml +++ b/roles/common-SQL/tasks/main.yml @@ -8,14 +8,14 @@ # for the 'mysql_' munin plugin - libcache-cache-perl -- name: Copy MySQL's configuration +- name: Copy MySQL/MariaDB configuration copy: src=etc/mysql/my.cnf dest=/etc/mysql/my.cnf owner=root group=root mode=0644 register: r notify: - - Restart MySQL + - Restart MariaDB # We need to restart now and load the relevant authplugin before we # connect to the database. @@ -38,8 +38,8 @@ - { name: root, host: '127.0.0.1'} - { name: root, host: '::1'} -- name: Start MySQL - service: name=mysql state=started +- name: Start MariaDB + service: name=mariadb state=started - name: Install 'mysql_' Munin wildcard plugin -- cgit v1.2.3