From 614b86ae72e6b5dedf60774f7c2a17d2444fc82e Mon Sep 17 00:00:00 2001 From: Chris Hammer Date: Fri, 8 Mar 2024 01:11:34 -0500 Subject: [PATCH] restore lab from backup; this may work decent --- bigboot-op.yml | 28 ++++++++++++++++------------ 1 file changed, 16 insertions(+), 12 deletions(-) diff --git a/bigboot-op.yml b/bigboot-op.yml index f796539..51a1f45 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: hostvars[inventory_hostname][bigboot_expansion_diff] | int <= 0 - name: Expand the /boot partition @@ -31,15 +31,19 @@ - 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: Yo + ansible.builtin.debug: + var: bigboot_expansion_diff - - name: Expand the /boot partition as requested - ansible.builtin.include_role: - name: infra.lvm_snapshots.bigboot + # - 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