--- - name: Mount arch zroot command: zfs mount zroot/ROOT/arch - name: Mount all other zroot mountpoints command: zfs mount -a - name: Create zroot destination directories ansible.builtin.file: path: "/mnt{{ item }}" state: directory loop: - /etc/zfs - /boot/efi - name: Mount EFI ansible.posix.mount: path: /mnt/boot/efi src: "{{ base_efi_partitions | first }}" fstype: vfat state: mounted - name: zfs | set zroot bootfs to arch command: zpool set bootfs=zroot/ROOT/arch zroot - name: zfs | set cachefile command: zpool set cachefile=/etc/zfs/zpool.cache zroot - name: zfs | copy cache file to chroot command: cp /etc/zfs/zpool.cache /mnt/etc/zfs