Move partitioning LUKS defaults into role

This commit is contained in:
2026-01-02 11:23:31 +01:00
parent 98d0a4954d
commit b1eedd30dc
3 changed files with 7 additions and 22 deletions

View File

@@ -1,7 +1,7 @@
---
- name: Detect system memory for swap sizing
when:
- (partitioning_vm_memory | float) <= 0
- partitioning_vm_memory is not defined or (partitioning_vm_memory | float) <= 0
- vm_memory is not defined or (vm_memory | float) <= 0
block:
- name: Read system memory
@@ -17,7 +17,7 @@
- name: Set partitioning vm_size for physical installs
when:
- install_type == "physical"
- (partitioning_vm_size | float) <= 0
- partitioning_vm_size is not defined or (partitioning_vm_size | float) <= 0
- vm_size is not defined or (vm_size | float) <= 0
- install_drive | length > 0
block:
@@ -157,14 +157,7 @@
when: partitioning_luks_enabled | bool
vars:
partitioning_luks_passphrase_effective: >-
{{
(
partitioning_luks_passphrase
if partitioning_luks_passphrase is defined
else (luks_passphrase if luks_passphrase is defined else '')
)
| string
}}
{{ partitioning_luks_passphrase | string }}
block:
- name: Validate LUKS passphrase
ansible.builtin.assert: