diff --git a/playbooks/roles/mariadb/tasks/centos.yml b/playbooks/roles/mariadb/tasks/centos.yml index 59d6a7d6..2b5ced27 100644 --- a/playbooks/roles/mariadb/tasks/centos.yml +++ b/playbooks/roles/mariadb/tasks/centos.yml @@ -6,4 +6,5 @@ yum: name={{ item }} enablerepo=mariadb state=present with_items: - MariaDB-server + - MySQL-python # required for secure_install ... diff --git a/playbooks/roles/mariadb/tasks/main.yml b/playbooks/roles/mariadb/tasks/main.yml index e1ccdf93..8d3e6ea0 100644 --- a/playbooks/roles/mariadb/tasks/main.yml +++ b/playbooks/roles/mariadb/tasks/main.yml @@ -15,7 +15,7 @@ when: ansible_distribution == 'Debian' - name: Add configuration - template: src=debian_mariadb_config.cnf dest={{ mysql_conf_dir[ansible_distribution] }}/{{ mysql_conf_file }} owner=root group=root mode=0644 + template: src={{ mysql_conf_tpl }} dest={{ mysql_conf_dir[ansible_distribution] }}/{{ mysql_conf_file }} owner=root group=root mode=0644 when: mysql_conf_tpl != 'change_me' and ansible_distribution == 'Debian' notify: restart mysql