From 748f18db3b4d8393bb71959ebd805562d2770f5c Mon Sep 17 00:00:00 2001 From: skecskes Date: Wed, 18 Feb 2015 21:21:02 +0000 Subject: [PATCH] FIX: handler to start mysql in notify wasn't run for some strange reason after mysql installed, causing failing the mysql configuration setup. --- roles/mysql/handlers/main.yml | 5 ++--- roles/mysql/tasks/install.yml | 5 +++-- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/roles/mysql/handlers/main.yml b/roles/mysql/handlers/main.yml index 5a9772c..e1dd940 100644 --- a/roles/mysql/handlers/main.yml +++ b/roles/mysql/handlers/main.yml @@ -1,7 +1,6 @@ # file: roles/mysql/handlers/main.yml +--- - name: Restart the MySQL service - action: service name=mariadb state=restarted + service: name=mariadb state=restarted enabled=true -- name: Start the MySQL service - action: service name=mariadb state=started enabled=true \ No newline at end of file diff --git a/roles/mysql/tasks/install.yml b/roles/mysql/tasks/install.yml index 5e73694..96664eb 100644 --- a/roles/mysql/tasks/install.yml +++ b/roles/mysql/tasks/install.yml @@ -6,5 +6,6 @@ - mariadb-server - mariadb - MySQL-python - notify: - - Start the MySQL service \ No newline at end of file + +- name: Start the MySQL service + service: name=mariadb state=started enabled=true \ No newline at end of file