---
- name: Install Mysql package
  apt: name={{ item }} state=present
  with_items:
   - mysql-server

- name: Create Mysql configuration file
  template: src=templates/my.cnf.j2 dest=/etc/my.cnf
  notify:
  - restart mysql

- name: Start Mysql Service
  service: name=mysql state=started enabled=yes
