roles/mariadb: Use systemd module instead of service
This commit is contained in:
parent
b6a54ca4d1
commit
7aafa1553b
@ -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:
|
||||||
|
@ -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
|
||||||
|
Loading…
Reference in New Issue
Block a user