roles/mariadb: Use systemd module instead of service

This commit is contained in:
Alan Orth 2017-11-02 23:54:13 +02:00
parent b6a54ca4d1
commit 7aafa1553b
2 changed files with 2 additions and 2 deletions

View File

@ -1,5 +1,5 @@
--- ---
- name: restart mysql - name: restart mysql
service: name=mysql state=restarted systemd: name=mysql state=restarted
# vim: set ts=2 sw=2: # vim: set ts=2 sw=2:

View File

@ -21,7 +21,7 @@
tags: mariadb tags: mariadb
- name: Start and enable MariaDB Service - name: Start and enable MariaDB Service
service: name=mysql state=started enabled=true systemd: name=mysql state=started enabled=yes
tags: mariadb tags: mariadb
# 'localhost' needs to be the last item for idempotency, see # 'localhost' needs to be the last item for idempotency, see