Add logrotate for mysql_skip log file
All checks were successful
gitea/ansible-roles/pipeline/head This commit looks good
All checks were successful
gitea/ansible-roles/pipeline/head This commit looks good
This commit is contained in:
parent
506e7ff3a3
commit
a6cfc0159b
|
@ -31,6 +31,16 @@
|
|||
tags:
|
||||
- mysql_skip
|
||||
|
||||
- name: "Copy logrotate file for mysql_skip.sh"
|
||||
template:
|
||||
src: mysql_skip.logrotate.j2
|
||||
dest: "/etc/logrotate.d/mysql_skip"
|
||||
owner: root
|
||||
group: root
|
||||
mode: "0600"
|
||||
tags:
|
||||
- mysql_skip
|
||||
|
||||
- name: "Copy mysql_skip.sh systemd unit"
|
||||
template:
|
||||
src: mysql_skip.systemd.j2
|
||||
|
|
10
mysql/templates/mysql_skip.logrotate.j2
Normal file
10
mysql/templates/mysql_skip.logrotate.j2
Normal file
|
@ -0,0 +1,10 @@
|
|||
/var/log/mysql_skip.log {
|
||||
missingok
|
||||
notifempty
|
||||
monthly
|
||||
rotate 12
|
||||
compress
|
||||
create 640 root adm
|
||||
dateext
|
||||
dateformat -%Y%m%d%H
|
||||
}
|
Loading…
Reference in a new issue