diff --git a/tasks/mariadb.yml b/tasks/mariadb.yml index 404ff0d..64d8e06 100644 --- a/tasks/mariadb.yml +++ b/tasks/mariadb.yml @@ -14,6 +14,7 @@ when: (mariadb_root_password is not defined) or (mariadb_root_password|length ==0) - name: install on CentOS + when: ansible_os_family == 'RedHat' block: - name: install repo vars: @@ -34,16 +35,9 @@ - mariadb-server state: present - when: ansible_os_family == 'RedHat' - - - - name: install mariadb server package - debian - ansible.builtin.package: - name: "{{ packages_list }}" - state: present - when: ansible_os_family == "Debian" - name: setup logging + when: ansible_os_family == 'RedHat' ansible.builtin.file: path: "{{ mariadb_server_log }}" state: touch @@ -52,6 +46,7 @@ mode: 0640 - name: setup logfile rotation + when: ansible_os_family == 'RedHat' ansible.builtin.template: src: mysql_logrotate dest: /etc/logrotate.d/mysql.conf