From 04392fdcaed7e276a5e6f07f157036f2ec2f5403 Mon Sep 17 00:00:00 2001 From: Chris Hammer Date: Wed, 13 Mar 2024 20:00:34 -0400 Subject: [PATCH] add some exceptions; remove some exceptions --- bigboot-op.yml | 2 -- tasks/capture_lv_device_details.yml | 3 +++ 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/bigboot-op.yml b/bigboot-op.yml index 934ff4f..5b6f12d 100644 --- a/bigboot-op.yml +++ b/bigboot-op.yml @@ -21,7 +21,6 @@ ansible.builtin.import_playbook: rhc.rear.rear_backup when: - bigboot_execute_bigboot | bool - - bigboot_execute_shrink_lv | bool - name: Perform logical volume and boot parition resizing as needed @@ -40,7 +39,6 @@ size: "{{ bigboot_lv_shrink_size | int }}" when: - bigboot_execute_shrink_lv | bool - - bigboot_execute_bigboot | bool - name: Expand the /boot partition as requested ansible.builtin.import_role: diff --git a/tasks/capture_lv_device_details.yml b/tasks/capture_lv_device_details.yml index 05b414f..f09b564 100644 --- a/tasks/capture_lv_device_details.yml +++ b/tasks/capture_lv_device_details.yml @@ -77,4 +77,7 @@ - name: Set flag for Shrink_LV execution ansible.builtin.set_fact: bigboot_execute_shrink_lv: true + when: + - bigboot_execute_bigboot | bool + - (bigboot_lv_pe_size_in_mb[:-3] | int | round) | int < bigboot_size[:-1] | int