fix(global_defaults): normalize disks when install_drive is supplied externally

This commit is contained in:
2026-08-24 18:38:48 +02:00
parent 332dfeb6f1
commit 22e66959ee
2 changed files with 2 additions and 3 deletions

View File

@@ -94,6 +94,7 @@
- name: Set install_drive from primary disk
when:
- install_drive is not defined
- system_disks_cfg | length > 0
- system_disks_cfg[0].device | string | length > 0
ansible.builtin.set_fact:

View File

@@ -79,9 +79,7 @@
os_version: "{{ system_cfg.version | default('') | string }}"
- name: Normalize disk configuration (pre-computed system_cfg)
when:
- system_cfg is defined
- install_drive is not defined
when: system_cfg is defined
ansible.builtin.include_tasks: _normalize_disks.yml
# Runs on every path before validation, so an empty firewall.backend / content.source