Move partitioning LUKS defaults into role
This commit is contained in:
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user