From 6b769f5d77dfa78f5197c4bd28beb4eb1f1a6fdb Mon Sep 17 00:00:00 2001 From: Jeremy Lecour Date: Wed, 14 Nov 2018 16:10:38 +0100 Subject: [PATCH] mysql: restart MySQL if systemd unit has changed --- mysql/tasks/config_stretch.yml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/mysql/tasks/config_stretch.yml b/mysql/tasks/config_stretch.yml index e7ce1772..0725ee1f 100644 --- a/mysql/tasks/config_stretch.yml +++ b/mysql/tasks/config_stretch.yml @@ -37,8 +37,9 @@ force: yes register: mariadb_systemd_override -- name: reload systemd +- name: reload systemd and restart MariaDB systemd: name: mysql daemon_reload: yes + notify: "{{ mysql_restart_handler_name }}" when: mariadb_systemd_override.changed