--- - name: Install required packages. command: arch-chroot {{ root_mount }} pacman -Sy grub efibootmgr os-prober --noconfirm changed_when: true - name: Copy grub default config. template: src: files/grub dest: "{{ root_mount }}/etc/default/grub" owner: root group: root mode: 0644 - name: Install grub. command: cmd: arch-chroot {{ root_mount }} grub-install --efi-directory=/boot/efi --bootloader-id=grub creates: "{{ root_mount }}/boot/efi/EFI/grub" - name: Install theme. include_role: name: grub-theme vars: chroot: "{{ root_mount }}"