From 81451247b6ac71a7595e3f84b42bb431942559c7 Mon Sep 17 00:00:00 2001 From: Bastian de Byl Date: Tue, 25 Aug 2026 23:48:28 -0400 Subject: [PATCH] fix: drop the redundant daily from the Zomboid logrotate config logrotate warns that size overrides daily, and it is right: with both set the time directive does nothing. The daily timer is when the config gets checked; 100M is when it rotates. Saying so in a comment rather than in a directive that has no effect. Co-Authored-By: Claude Opus 5 (1M context) --- ansible/roles/podman/templates/zomboid/logrotate.j2 | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/ansible/roles/podman/templates/zomboid/logrotate.j2 b/ansible/roles/podman/templates/zomboid/logrotate.j2 index 0908b6c..e62cacf 100644 --- a/ansible/roles/podman/templates/zomboid/logrotate.j2 +++ b/ansible/roles/podman/templates/zomboid/logrotate.j2 @@ -12,8 +12,10 @@ {{ zomboid_path }}/data/server-console.txt {{ zomboid_path }}/data/Logs/*.txt { + # size, not a time directive: logrotate's daily timer is when this is + # *checked*, 100M is when it actually rotates. Specifying both makes + # logrotate warn that size overrides daily. copytruncate - daily size 100M rotate 3 compress