diff options
Diffstat (limited to 'roles/install-grub/tasks/main.yml')
-rw-r--r-- | roles/install-grub/tasks/main.yml | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/roles/install-grub/tasks/main.yml b/roles/install-grub/tasks/main.yml index dfe765d..974f011 100644 --- a/roles/install-grub/tasks/main.yml +++ b/roles/install-grub/tasks/main.yml @@ -1,4 +1,3 @@ - - name: Create GRUB directory become: true file: @@ -35,7 +34,7 @@ - name: Install GRUB in the boot sector of {{ vyos_target_drive }} become: true - command: "chroot {{ vyos_install_root }} grub-install --no-floppy --root-directory=/boot {{ vyos_grub_drive }} --force" + command: "chroot {{ vyos_install_root }} grub-install --no-floppy --target=i386-pc --root-directory=/boot {{ loop_device.stdout }} --force" args: creates: "{{ vyos_install_root }}/boot/grub/grubenv" |