From 943fb1b24f44edda63ed498635048e25b261ab9d Mon Sep 17 00:00:00 2001 From: Chris Hammer Date: Tue, 24 Jun 2025 11:00:00 -0400 Subject: [PATCH] Don't subtract the additional PE if the target size matches the intended target size --- tasks/capture_lv_device_details.yml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/tasks/capture_lv_device_details.yml b/tasks/capture_lv_device_details.yml index c220899..b80c086 100644 --- a/tasks/capture_lv_device_details.yml +++ b/tasks/capture_lv_device_details.yml @@ -111,6 +111,8 @@ - name: Subtract one additional PE for shrinking ansible.builtin.set_fact: bigboot_lv_shrink_size: "{{ bigboot_lv_shrink_size | int - bigboot_lv_vg_pe_size | int }}" + when: + - bigboot_size_target_fallback | human_to_bytes < bigboot_size_target | human_to_bytes # - name: Kill the play # ansible.builtin.meta: end_host