diff --git a/tasks/configure.yml b/tasks/configure.yml index 38ab367..2bfe688 100644 --- a/tasks/configure.yml +++ b/tasks/configure.yml @@ -167,3 +167,15 @@ daemon_reload: true name: motion_hass.timer enabled: true + + - name: Configure logrotate for HomeAssistant integration + blockinfile: + path: /etc/logrotate.d/motion_hass + block: | + /var/lib/motion/log/motion_hass.log { + daily + rotate 30 + compress + } + create: true + \ No newline at end of file