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