From 0e934a30fc9db6f7956eeec417d952a66e18841b Mon Sep 17 00:00:00 2001 From: Markus Katharina Brechtel Date: Wed, 30 Aug 2017 22:17:35 +0000 Subject: [PATCH] current --- defaults/main.yml | 1 + tasks/main.yml | 4 ++-- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/defaults/main.yml b/defaults/main.yml index 6406982..0a17579 100644 --- a/defaults/main.yml +++ b/defaults/main.yml @@ -2,3 +2,4 @@ grub_cmdline_linux: grub_cmdline_linux_default: quiet grub_disable_recovery: false grub_terminal: console +boot_devices: "{{ hard_disks | map(attribute='device') | list }}" diff --git a/tasks/main.yml b/tasks/main.yml index 8fe23f9..a38cece 100644 --- a/tasks/main.yml +++ b/tasks/main.yml @@ -11,7 +11,8 @@ dest: "{{ root_target_directory }}/etc/default/grub" - name: grub-install - command: chroot {{ root_target_directory }} grub-install {{ boot_devices | join(" ") }} + command: chroot {{ root_target_directory }} grub-install {{ item }} + with_items: "{{ boot_devices }}" - name: update-grub command: chroot {{ root_target_directory }} update-grub @@ -19,7 +20,6 @@ - name: update initramfs command: chroot {{ root_target_directory }} update-initramfs -u - - include_role: name: chroot_environment vars: