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