breaking stuff

This commit is contained in:
Chris Hammer 2024-03-08 12:10:25 -05:00
parent 91b8a1c92f
commit 7fa8bf1923

View File

@ -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