arch installation mostly works with zfsbootmgr

This commit is contained in:
Mark Riedesel 2024-11-20 09:12:19 -06:00
commit 1444f05d9c
19 changed files with 496 additions and 0 deletions

View file

@ -0,0 +1,12 @@
---
- name: Initialize swap space
become: true
command: "blkid {{item}}"
loop: "{{ base_swap_partitions | default([]) }}"
register: blkid
- name: Swap devices without swap filesystems present
become: true
command: "mkswap --verbose {{item.item}}"
loop: "{{ blkid.results | rejectattr('stdout', 'contains', 'TYPE=\"swap\"') }}"
register: mkswap