From 68140fc34602e65429601b1a4bc2cccf148263b2 Mon Sep 17 00:00:00 2001 From: Chris Hammer Date: Mon, 2 Jun 2025 13:09:01 -0400 Subject: [PATCH] Minor tweaks --- tasks/check_space_fallback.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tasks/check_space_fallback.yml b/tasks/check_space_fallback.yml index 109a7ea..53a2f1a 100644 --- a/tasks/check_space_fallback.yml +++ b/tasks/check_space_fallback.yml @@ -18,12 +18,12 @@ - name: Debug bigboot_lv_info ansible.builtin.debug: - msg: "{{ bigboot_lv_info['size_available'] }} -> {{ bigboot_expansion_diff }} -> {{ bigboot_lv_size_min | human_to_bytes }}" + msg: "{{ bigboot_lv_info['size_available'] }} - {{ bigboot_expansion_diff }} == {{ (bigboot_lv_info['size_available'] - bigboot_expansion_diff | int) }} -> {{ bigboot_lv_size_min | human_to_bytes }}" - name: Assert that there will be enough space left over on the target LV ansible.builtin.assert: that: (bigboot_lv_info['size_available'] - bigboot_expansion_diff | int) >= bigboot_lv_size_min | human_to_bytes - success_msg: "There will be enough space left over with a boot size of {{ bigboot_size_target_fallback | int | human_readable(unit='G') }}." + success_msg: "There will be enough space left over with a boot size of {{ bigboot_size_target_fallback | int | human_readable(unit='G') }}. ({{ (bigboot_lv_info['size_available'] - bigboot_expansion_diff | int) | human_readable(unit='M') }})" fail_msg: "There will NOT be enough space left over with a boot size of {{ bigboot_size_target_fallback | int | human_readable(unit='G') }}. Aborting Bigboot execution." rescue: