try this using ansible-pull

This commit is contained in:
Mark Riedesel 2024-11-20 12:52:53 -06:00
parent 1444f05d9c
commit 2b7d4e9c77
9 changed files with 69 additions and 23 deletions

View file

@ -18,6 +18,9 @@
}}
with_items: "{{ base_partitions_by_id | dict2items }}"
- debug:
var: base_root_partitions | map('extract', partition_device_to_ids) | map('first')
- name: Create zroot volume
become: true
command: >-
@ -32,7 +35,7 @@
-O canmount=off
-O mountpoint=none
-R /mnt
zroot {{ mirror }} {{ base_root_partitions | map('extract', partition_device_to_ids) | flatten | list | join(' ') }}
zroot {{ mirror }} {{ base_root_partitions | map('extract', partition_device_to_ids) | map('first') | flatten | list | join(' ') }}
vars:
mirror: "{{ 'mirror' if base_root_partitions | length > 1 else '' }}"
when: zroot_check.rc != 0