From 922125ef98202a15aa22c967f1f8bd4140eda0d6 Mon Sep 17 00:00:00 2001 From: Paolo Mainardi Date: Sun, 17 Nov 2024 13:43:04 +0100 Subject: [PATCH] feat: add kernel-modules-hook to make kernel upgrades safer --- playbooks/roles/system/tasks/kernel.yml | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/playbooks/roles/system/tasks/kernel.yml b/playbooks/roles/system/tasks/kernel.yml index 6bc4c89..518c1ba 100644 --- a/playbooks/roles/system/tasks/kernel.yml +++ b/playbooks/roles/system/tasks/kernel.yml @@ -7,6 +7,13 @@ - stat: path=/boot/grub register: grubcfg + - name: "Install kernel hooks to keep running kernel healthy" + block: + - name: Install kernel-modules-hook + community.general.pacman: + name: + - kernel-modules-hook + - name: "Install linux-lts kernel" when: system.kernel == "standard" block: