--- - name: Install required packages. command: arch-chroot {{ partitioning_root_mount_point }} pacman -Sy grub efibootmgr os-prober --noconfirm changed_when: true - name: Get luks device node uuid. shell: | set -e -o pipefail blkid {{ partitioning_priv_luks_device_node }} -o value | head -1 register: _device_node_uuid changed_when: false - name: Assign device node id to variable. set_fact: bootloader_priv_luks_device_node_uuid: "{{ _device_node_uuid.stdout }}" - name: Copy grub default config. template: src: files/grub dest: "{{ partitioning_root_mount_point }}/etc/default/grub" owner: root group: root mode: 0644 - name: Install grub. command: cmd: arch-chroot {{ partitioning_root_mount_point }} grub-install --efi-directory=/boot/efi --bootloader-id=grub creates: "{{ partitioning_root_mount_point }}/boot/efi/EFI/grub" - name: Install theme. include_role: name: grub-theme vars: chroot: "{{ partitioning_root_mount_point }}"