You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
26 lines
676 B
26 lines
676 B
- name: Install packages.
|
|
command: arch-chroot /mnt pacman -Sy grub efibootmgr os-prober --noconfirm
|
|
|
|
- include_tasks: grub-theme.yml
|
|
|
|
- name: Get luks partition id.
|
|
shell: blkid /dev/{{ disk }}2 -o value | head -1
|
|
register: luks_partition_uuid
|
|
|
|
- name: Get nested value.
|
|
set_fact:
|
|
luks_partition_uuid: "{{ luks_partition_uuid.stdout }}"
|
|
|
|
- name: Copy grub default config.
|
|
template:
|
|
src: files/grub
|
|
dest: /mnt/etc/default/grub
|
|
owner: root
|
|
group: root
|
|
mode: 0644
|
|
notify: grub mkconfig
|
|
|
|
- name: Install grub.
|
|
command:
|
|
cmd: arch-chroot /mnt grub-install --efi-directory=/boot/efi --bootloader-id=grub
|
|
creates: /mnt/boot/efi/EFI/grub
|
|
|