make it worjk on debian 12
This commit is contained in:
@@ -14,6 +14,7 @@
|
|||||||
when: (mariadb_root_password is not defined) or (mariadb_root_password|length ==0)
|
when: (mariadb_root_password is not defined) or (mariadb_root_password|length ==0)
|
||||||
|
|
||||||
- name: install on CentOS
|
- name: install on CentOS
|
||||||
|
when: ansible_os_family == 'RedHat'
|
||||||
block:
|
block:
|
||||||
- name: install repo
|
- name: install repo
|
||||||
vars:
|
vars:
|
||||||
@@ -34,16 +35,9 @@
|
|||||||
- mariadb-server
|
- mariadb-server
|
||||||
state: present
|
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
|
- name: setup logging
|
||||||
|
when: ansible_os_family == 'RedHat'
|
||||||
ansible.builtin.file:
|
ansible.builtin.file:
|
||||||
path: "{{ mariadb_server_log }}"
|
path: "{{ mariadb_server_log }}"
|
||||||
state: touch
|
state: touch
|
||||||
@@ -52,6 +46,7 @@
|
|||||||
mode: 0640
|
mode: 0640
|
||||||
|
|
||||||
- name: setup logfile rotation
|
- name: setup logfile rotation
|
||||||
|
when: ansible_os_family == 'RedHat'
|
||||||
ansible.builtin.template:
|
ansible.builtin.template:
|
||||||
src: mysql_logrotate
|
src: mysql_logrotate
|
||||||
dest: /etc/logrotate.d/mysql.conf
|
dest: /etc/logrotate.d/mysql.conf
|
||||||
|
|||||||
Reference in New Issue
Block a user