diff --git a/roles/mariadb/handlers/main.yml b/roles/mariadb/handlers/main.yml index 49112de..42c533e 100644 --- a/roles/mariadb/handlers/main.yml +++ b/roles/mariadb/handlers/main.yml @@ -1,5 +1,5 @@ --- - name: restart mysql - service: name=mysql state=restarted + systemd: name=mysql state=restarted # vim: set ts=2 sw=2: diff --git a/roles/mariadb/tasks/main.yml b/roles/mariadb/tasks/main.yml index aec0662..a09cfbc 100644 --- a/roles/mariadb/tasks/main.yml +++ b/roles/mariadb/tasks/main.yml @@ -21,7 +21,7 @@ tags: mariadb - name: Start and enable MariaDB Service - service: name=mysql state=started enabled=true + systemd: name=mysql state=started enabled=yes tags: mariadb # 'localhost' needs to be the last item for idempotency, see