Skip to content

Commit 747b88d

Browse files
committed
Check mysql daemon status.
1 parent 41845e7 commit 747b88d

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

handlers/main.yml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,9 @@
11
---
22
- name: restart mysql
3-
command: "service {{ mysql_daemon }} restart"
3+
command: "{{ item }}"
4+
with_items:
5+
- "service {{ mysql_daemon }} status"
6+
- "service {{ mysql_daemon }} restart"
47
# - name: restart mysql
58
# service: >
69
# name={{ mysql_daemon }}

0 commit comments

Comments
 (0)