tweaks for lint happiness

This commit is contained in:
Mark Riedesel 2024-11-22 13:32:30 -06:00
parent 5d78efcac5
commit c6f5d3546a
12 changed files with 128 additions and 104 deletions

View file

@ -1,18 +1,23 @@
---
- name: Mount arch zroot
- name: Arch Install | Chroot | Mount arch zroot
ansible.builtin.command: zfs mount zroot/ROOT/arch
- name: Mount all other zroot mountpoints
changed_when: false
- name: Arch Install | Chroot | Mount all other zroot mountpoints
ansible.builtin.command: zfs mount -a
- name: Create zroot destination directories
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
- ansible.builtin.debug:
var: base_efi_partitions
- name: Mount EFI
ansible.posix.mount:
path: /mnt/boot/efi
@ -20,9 +25,19 @@
fstype: vfat
state: mounted
- name: zfs | Set zroot bootfs to arch
- name: Arch Chroot | zpool | Set zroot bootfs to arch
ansible.builtin.command: zpool set bootfs=zroot/ROOT/arch zroot
- name: zfs | Set cachefile
changed_when: false
- name: Arch Chroot | zpool | Set cachefile
ansible.builtin.command: zpool set cachefile=/etc/zfs/zpool.cache zroot
- name: zfs | Copy cache file to chroot
ansible.builtin.command: cp /etc/zfs/zpool.cache /mnt/etc/zfs
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"