mariadb: Add query log rotation
This commit is contained in:
parent
04575b20ee
commit
a632b3efbf
1 changed files with 8 additions and 0 deletions
|
@ -136,6 +136,14 @@
|
|||
hour: "0"
|
||||
minute: "30"
|
||||
|
||||
- name: Add logrotate job for query log
|
||||
ansible.builtin.copy:
|
||||
dest: /etc/logrotate.d/mariadb-querylog
|
||||
src: mariadb-querylog.logrotate
|
||||
mode: "0644"
|
||||
owner: root
|
||||
group: "{{ ansible_wheel }}"
|
||||
|
||||
- name: Copy script to check timezone data
|
||||
ansible.builtin.copy:
|
||||
dest: /usr/local/sbin/mysql_tzinfo_check
|
||||
|
|
Loading…
Add table
Reference in a new issue