feat(sys_autoupdate): notify on pending kernel reboot

Detect drift between the running kernel and the newest installed one
(Arch: /usr/lib/modules vs uname -r; Debian: /var/run/reboot-required)
and push a weekly ntfy reminder until the host is rebooted.

Also bundles the in-flight ignore-packages feature and hostname
refactor in the autoupdate script.
This commit is contained in:
Clément Désiles
2026-09-05 16:59:49 +02:00
parent 24502f543f
commit b94743567f
4 changed files with 136 additions and 10 deletions
+26
View File
@@ -17,8 +17,34 @@ sys_autoupdate_randomized_delay: 60m
sys_autoupdate_check_news: true
sys_autoupdate_news_hours: 24
# Kernel reboot check cadence: notify drift (running vs installed kernel) only
# on this day of the week (1=Monday .. 7=Sunday) to avoid daily nagging.
sys_autoupdate_reboot_notify_weekday: 1
sys_autoupdate_allow_downgrade: false
# Packages excluded from auto-update.
# Arch: passed as `pacman --ignore=pkg1,pkg2`
# Debian/Ubuntu: reconciled via `apt-mark hold` / `apt-mark unhold` on each run
#
# Common use case: hold kernel back when running out-of-tree modules (ZFS DKMS,
# Nvidia, VirtualBox, etc.). When holding the kernel, also hold matching headers
# and any DKMS modules to keep them in lockstep.
#
# Example (Arch with ZFS DKMS):
# sys_autoupdate_ignore_packages:
# - linux
# - linux-headers
# - zfs-dkms
# - zfs-utils
#
# Example (Debian/Ubuntu with ZFS DKMS):
# sys_autoupdate_ignore_packages:
# - linux-image-generic
# - linux-headers-generic
# - zfs-dkms
sys_autoupdate_ignore_packages: []
# Podman image auto-update (rootless, runs as ansible_user)
# Pulls latest images via podman-compose and recreates containers if changed
sys_autoupdate_podman_enabled: true