--- - 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)') }}" - name: Default log directory is present file: path: /var/log/mysql owner: mysql group: adm mode: "2750" state: directory when: ansible_distribution_major_version is version('12', '>=') - include_tasks: packages_stretch.yml when: ansible_distribution_major_version is version('9', '>=') - include_tasks: packages_jessie.yml when: ansible_distribution_release == "jessie" ## There is nothing to do with users on Debian 11+ - yet we need a /root/.my.cnf for compatibility - include_tasks: users_bullseye.yml when: ansible_distribution_major_version is version('11', '>=') - include_tasks: users_buster.yml when: ansible_distribution_release == "buster" - include_tasks: users_stretch.yml when: ansible_distribution_release == "stretch" - include_tasks: users_jessie.yml when: ansible_distribution_release == "jessie" - include_tasks: config_stretch.yml when: ansible_distribution_major_version is version('9', '>=') - include_tasks: config_jessie.yml when: ansible_distribution_release == "jessie" - include_tasks: replication.yml when: mysql_replication | bool - include_tasks: datadir.yml - include_tasks: logdir.yml - include_tasks: tmpdir.yml - include_tasks: nrpe.yml - include_tasks: munin.yml - include_tasks: log2mail.yml - include_tasks: utils.yml - include_tasks: mysql_skip.yml