fix issue

This commit is contained in:
vincent 2022-09-12 21:37:29 +02:00
parent d80023e845
commit c033aa536a

View File

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