Define optional defaults and require vm_cpus

This commit is contained in:
2026-01-02 11:25:06 +01:00
parent b1eedd30dc
commit f46dea0748
7 changed files with 25 additions and 13 deletions

View File

@@ -34,13 +34,15 @@
ansible.builtin.assert:
that:
- install_type is defined and install_type in ["virtual", "physical"]
- hypervisor is defined and hypervisor in ["libvirt", "proxmox", "vmware", "none"]
- hypervisor in ["libvirt", "proxmox", "vmware", "none"]
- install_type is defined and (install_type == "physical" or hypervisor in ["libvirt", "proxmox", "vmware"])
- filesystem is defined and filesystem in ["btrfs", "ext4", "xfs"]
- install_drive is defined and install_drive | length > 0
- hostname is defined and hostname | length > 0
- os is defined and os in ["archlinux", "almalinux", "debian11", "debian12", "debian13", "fedora", "rhel8", "rhel9", "rhel10", "rocky", "ubuntu", "ubuntu-lts"]
- os is defined and (os not in ["rhel8", "rhel9", "rhel10"] or (rhel_iso is defined and rhel_iso | length > 0))
- install_type is defined and (install_type == "physical" or (boot_iso is defined and boot_iso | length > 0))
- install_type is defined and (install_type == "physical" or (vm_cpus is defined and (vm_cpus | int) > 0))
- install_type is defined and (install_type == "physical" or (vm_size is defined and (vm_size | float) > 0))
- install_type is defined and (install_type == "physical" or (vm_memory is defined and (vm_memory | float) > 0))
- >-