From acd3223ba34f536efc95bda535e38db48b5d3aba Mon Sep 17 00:00:00 2001 From: Thomas Constans Date: Fri, 2 May 2025 10:09:47 +0200 Subject: [PATCH] make it worjk on debian 12 --- tasks/mariadb.yml | 11 +++-------- 1 file changed, 3 insertions(+), 8 deletions(-) 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