make it worjk on debian 12

This commit is contained in:
2025-05-02 10:09:47 +02:00
parent 8a9010a5e6
commit acd3223ba3

View File

@@ -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