add logrotates

This commit is contained in:
Antonio J. Delgado 2023-03-17 15:55:56 +02:00
parent 7002974f41
commit 77d2463cef

View file

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