---

- name: Set if MySQL should be restart (if needed) or not at all
  set_fact:
    mysql_restart_handler_name: "{{ mysql_restart_if_needed | bool | ternary('restart mysql', 'restart mysql (noop)') }}"

- include: packages_stretch.yml
  when: ansible_distribution_major_version is version('9', '>=')

- include: packages_jessie.yml
  when: ansible_distribution_release == "jessie"

- include: users_stretch.yml
  when: ansible_distribution_major_version is version('9', '>=')

- include: users_jessie.yml
  when: ansible_distribution_release == "jessie"

- include: config_stretch.yml
  when: ansible_distribution_major_version is version('9', '>=')

- include: config_jessie.yml
  when: ansible_distribution_release == "jessie"

- include: replication.yml
  when: mysql_replication

- include: datadir.yml

- include: logdir.yml

- include: tmpdir.yml

- include: nrpe.yml

- include: munin.yml

- include: log2mail.yml

- include: utils.yml
