From e75578352f2fb428967912d7b3f8e5b6f40bed8c Mon Sep 17 00:00:00 2001 From: Chris Hammer Date: Thu, 22 May 2025 15:26:47 -0400 Subject: [PATCH] Task addition for idempotency --- tasks/capture_boot_device_details.yml | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/tasks/capture_boot_device_details.yml b/tasks/capture_boot_device_details.yml index c7f8f10..72a67ba 100644 --- a/tasks/capture_boot_device_details.yml +++ b/tasks/capture_boot_device_details.yml @@ -34,6 +34,12 @@ success_msg: The /boot partition is already at the desired size rescue: + - name: "End host if /boot is already at or above {{ bigboot_size_min }}" + ansible.builtin.fail: + msg: "/boot partition size is already at least {{ bigboot_size_min }} or greater. Nothing to do." + when: + - bigboot_boot_partsize | human_to_bytes > bigboot_size_min | int + - name: Set flag for Bigboot execution ansible.builtin.set_fact: bigboot_execute_bigboot: true