diff --git a/unattended_upgrades/defaults/main.yml b/unattended_upgrades/defaults/main.yml index 6ac3ac1..542f158 100644 --- a/unattended_upgrades/defaults/main.yml +++ b/unattended_upgrades/defaults/main.yml @@ -11,6 +11,13 @@ unattended_upgrades: - ${distro_id}:${distro_codename}-security - ${distro_id}ESMApps:${distro_codename}-apps-security - ${distro_id}ESM:${distro_codename}-infra-security + # Regexes matched against the package name start. An upgrade of these makes needrestart/systemd restart every + # service at once, containerd included: the dead FUSE mounts hung systemd-resolved on antius, netbird lost DNS + # and the node went NotReady (2026-11-14). Upgrade them by hand with a reboot. + package_blacklist: + - libc6 + - libc-bin + - systemd # Recipient of the report mail; unset sends none, as no host has an outgoing mail setup. mail: mail_report: only-on-error diff --git a/unattended_upgrades/templates/52unattended-upgrades-local.j2 b/unattended_upgrades/templates/52unattended-upgrades-local.j2 index 8cc9a0a..4f17ec1 100644 --- a/unattended_upgrades/templates/52unattended-upgrades-local.j2 +++ b/unattended_upgrades/templates/52unattended-upgrades-local.j2 @@ -19,6 +19,14 @@ Unattended-Upgrade::Allowed-Origins { }; {% endif %} +{% if unattended_upgrades.package_blacklist %} +Unattended-Upgrade::Package-Blacklist { +{% for pkg in unattended_upgrades.package_blacklist %} + "{{ pkg }}"; +{% endfor %} +}; +{% endif %} + // No automatic reboot, the owner schedules those. Unattended-Upgrade::Automatic-Reboot "false"; Unattended-Upgrade::Remove-Unused-Kernel-Packages "true";