43 lines
1.1 KiB
YAML
43 lines
1.1 KiB
YAML
---
|
|
- name: Arch Install | Chroot | Mount arch zroot
|
|
ansible.builtin.command: zfs mount zroot/ROOT/arch
|
|
changed_when: false
|
|
|
|
- name: Arch Install | Chroot | Mount all other zroot mountpoints
|
|
ansible.builtin.command: zfs mount -a
|
|
changed_when: false
|
|
|
|
- name: Arch Install | Chroot | Create zroot destination directories
|
|
ansible.builtin.file:
|
|
path: "/mnt{{ item }}"
|
|
state: directory
|
|
owner: root
|
|
group: root
|
|
mode: '0755'
|
|
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: Arch Chroot | zpool | Set zroot bootfs to arch
|
|
ansible.builtin.command: zpool set bootfs=zroot/ROOT/arch zroot
|
|
changed_when: false
|
|
|
|
- name: Arch Chroot | zpool | Set cachefile
|
|
ansible.builtin.command: zpool set cachefile=/etc/zfs/zpool.cache zroot
|
|
changed_when: false
|
|
|
|
- name: Arch Chroot | zpool | copy zpool.cache to installation chroot
|
|
ansible.builtin.copy:
|
|
remote_src: true
|
|
src: /etc/zfs/zpool.cache
|
|
dest: /mnt/etc/zfs/zpool.cache
|
|
owner: root
|
|
group: root
|
|
mode: "0644"
|