src.nth.io/

summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLuke Hoersten <[email protected]>2026-07-31 14:47:57 -0500
committerLuke Hoersten <[email protected]>2026-07-31 14:47:57 -0500
commit3ad4754b313d21d8969405e89f9b9aeb77d799ac (patch)
tree09327fab7eedd4b312ec41e640096d78edfafa1a
parent24f089781c548ad6e4c9e5b3c364e37b8a8a59bb (diff)
rpi-base: drop the duplicate cloud-init logrotate config
26.04 ships the same snippet from both cloud-init and cloud-init-base; the duplicate log entry made every logrotate run exit 1 fleet-wide. Keep the base one; dpkg remembers conffile deletions across upgrades.
-rw-r--r--rpi-base/tasks/main.yaml9
1 files changed, 9 insertions, 0 deletions
diff --git a/rpi-base/tasks/main.yaml b/rpi-base/tasks/main.yaml
index 087d964..2a94df5 100644
--- a/rpi-base/tasks/main.yaml
+++ b/rpi-base/tasks/main.yaml
@@ -33,6 +33,15 @@
become: yes
copy: src="logrotate.conf" dest="/etc/logrotate.conf"
+# 26.04 ships the same snippet from both cloud-init and cloud-init-base,
+# and the duplicate log entry makes every logrotate run exit 1. Keep the
+# base one; dpkg remembers conffile deletions across package upgrades.
+- name: drop the duplicate cloud-init logrotate config
+ become: yes
+ file:
+ path: "/etc/logrotate.d/cloud-init"
+ state: absent
+
- name: configure journald max size
become: yes
copy: src="journald.conf" dest="/etc/systemd/journald.conf"