---
- name: restart mysql
  service: >
    name={{ mysql_daemon }}
    state=restarted

---
- name: restart mysql
  command: "service {{ mysql_daemon }} restart"
# - name: restart mysql
#   service: >
#     name={{ mysql_daemon }}
#     state=restarted

Use command instead of service module for mysql restart.
Use command instead of service module for mysql restart.
