diff --git a/tasks/configure.yml b/tasks/configure.yml index 2bfe688..88e2327 100644 --- a/tasks/configure.yml +++ b/tasks/configure.yml @@ -178,4 +178,25 @@ compress } create: true - \ No newline at end of file + + - 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