From e4eebf2e2d6f1c06f55de4025f5fc1f1da98fc82 Mon Sep 17 00:00:00 2001 From: Alexander Grothe Date: Fri, 10 Aug 2018 08:13:44 +0200 Subject: [PATCH] Add handler to update initramfs --- roles/grub-config/handlers/main.yml | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/roles/grub-config/handlers/main.yml b/roles/grub-config/handlers/main.yml index b6d741c..21185fc 100644 --- a/roles/grub-config/handlers/main.yml +++ b/roles/grub-config/handlers/main.yml @@ -1,5 +1,10 @@ --- +- name: Update Initramfs + command: "update-initramfs -u" + failed_when: ('error' in initramfs_register_update.stderr) + register: initramfs_register_update + - name: Update GRUB command: update-grub failed_when: ('error' in grub_register_update.stderr)