From c033aa536a0cb483348396d538480797a085f1fc Mon Sep 17 00:00:00 2001 From: vincent Date: Mon, 12 Sep 2022 21:37:29 +0200 Subject: [PATCH] fix issue --- tasks/main.yml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/tasks/main.yml b/tasks/main.yml index dc9ae69..1cdb1c2 100644 --- a/tasks/main.yml +++ b/tasks/main.yml @@ -17,7 +17,7 @@ - name: create partition parted: device: "{{ item.0.device }}" - label: "{% if provissionning_UEFI_Enable == True %}GPT{% else %}msdos{% endif %}" + label: "{% if provissionning_UEFI_Enable == True %}gpt{% else %}msdos{% endif %}" number: "{{ item.1.number }}" part_start: "{{ item.1.part_start | default('0%') }}" part_end: "{{ item.1.part_end | default('100%') }}" @@ -100,9 +100,9 @@ - name: Install legacy grub command: "arch-chroot /mnt grub-install {{ item.0.device }} " - when: provissionning_UEFI_Enable == False loop: '{{ mount_table|subelements("settings") }}' - when: item.1.mountpath == "/mnt/boot" + when: item.1.mountpath == "/mnt/boot" and provissionning_UEFI_Enable == False + - name: Create grub config command: arch-chroot /mnt grub-mkconfig -o /boot/grub/grub.cfg