use debconf module instead of shell command

This commit is contained in:
Alexander Grothe
2018-08-03 10:32:02 +02:00
parent 05ca162830
commit 4170935a5a
3 changed files with 43 additions and 8 deletions

View File

@@ -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)