From 76f1382e3eb07d2bece82557d5ab99519e43e93d Mon Sep 17 00:00:00 2001 From: Sandwich Date: Wed, 30 Oct 2024 00:44:19 +0100 Subject: [PATCH] Assertion for minimum filesystem size --- main.yml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/main.yml b/main.yml index 29db7d4..1acca58 100644 --- a/main.yml +++ b/main.yml @@ -49,7 +49,8 @@ - filesystem in ["btrfs", "ext4", "xfs"] - os in ["archlinux", "almalinux", "debian11", "debian12", "fedora", "rhel8", "rhel9", "rocky", "ubuntu", "ubuntu-lts"] - os not in ["rhel8", "rhel9"] or rhel_iso is defined - fail_msg: Invalid input specified, please try again + - (filesystem == "btrfs" and (vm_size | int) >= 10) or (filesystem != "btrfs" and (vm_size | int) >= 20) + fail_msg: Invalid input specified, please try again. - name: Set connection when: hypervisor == "vmware"