add logrotates
This commit is contained in:
parent
7002974f41
commit
77d2463cef
1 changed files with 22 additions and 1 deletions
|
@ -178,4 +178,25 @@
|
|||
compress
|
||||
}
|
||||
create: true
|
||||
|
||||
|
||||
- name: Configure logrotate for process_motion_event
|
||||
blockinfile:
|
||||
path: /etc/logrotate.d/process_motion_event
|
||||
block: |
|
||||
/var/lib/motion/log/process_motion_event.log {
|
||||
daily
|
||||
rotate 30
|
||||
compress
|
||||
}
|
||||
create: true
|
||||
|
||||
- name: Configure logrotate for send_msg
|
||||
blockinfile:
|
||||
path: /etc/logrotate.d/send_msg_motion
|
||||
block: |
|
||||
/var/lib/motion/log/send_msg.log {
|
||||
daily
|
||||
rotate 30
|
||||
compress
|
||||
}
|
||||
create: true
|
||||
|
|
Loading…
Reference in a new issue