From 7fa8bf19239c4dcf174938bbda982fa87adb2f76 Mon Sep 17 00:00:00 2001 From: Chris Hammer Date: Fri, 8 Mar 2024 12:10:25 -0500 Subject: [PATCH] breaking stuff --- bigboot-op.yml | 38 +++++++++++++++++++++++--------------- 1 file changed, 23 insertions(+), 15 deletions(-) diff --git a/bigboot-op.yml b/bigboot-op.yml index f796539..70a2f0b 100644 --- a/bigboot-op.yml +++ b/bigboot-op.yml @@ -18,7 +18,7 @@ - name: Import hi playbook ansible.builtin.import_playbook: rhc.rear.hi - when: bigboot_expansion_diff | int <= 0 + when: bigboot_expansion_diff | int > 0 - name: Expand the /boot partition @@ -28,18 +28,26 @@ strategy: free tasks: - - name: Execute Shrink_LV/Bigboot as needed - when: bigboot_expansion_diff | int <= 0 - block: - - name: Execute Shrink_LV role to resize target logical volume - ansible.builtin.import_role: - name: infra.lvm_snapshots.shrink_lv - vars: - shrink_lv_devices: - - device: "{{ bigboot_adjacent_lvm_device | trim }}" - size: "{{ bigboot_lv_shrink_size | int }}" - when: bigboot_execute_shrink_lv | bool + - name: Something should go here + ansible.builtin.debug: + msg: "Something should go here -> {{ bigboot_size }} -> {{ bigboot_expansion_diff }}" - - name: Expand the /boot partition as requested - ansible.builtin.include_role: - name: infra.lvm_snapshots.bigboot + - name: Execute Shrink_LV/Bigboot as needed + ansible.builtin.debug: + msg: "we made it {{ bigboot_adjacent_lvm_device }} -> {{ bigboot_lv_pe_size_in_mb }}" + + # - name: Execute Shrink_LV/Bigboot as needed + # when: bigboot_expansion_diff | int <= 0 + # block: + # - name: Execute Shrink_LV role to resize target logical volume + # ansible.builtin.import_role: + # name: infra.lvm_snapshots.shrink_lv + # vars: + # shrink_lv_devices: + # - device: "{{ bigboot_adjacent_lvm_device | trim }}" + # size: "{{ bigboot_lv_shrink_size | int }}" + # when: bigboot_execute_shrink_lv | bool + + # - name: Expand the /boot partition as requested + # ansible.builtin.include_role: + # name: infra.lvm_snapshots.bigboot