implement safeguards
This commit is contained in:
parent
659f8c4923
commit
a93d65c7b2
@ -18,6 +18,7 @@
|
|||||||
|
|
||||||
- name: Import hi playbook
|
- name: Import hi playbook
|
||||||
ansible.builtin.import_playbook: rhc.rear.hi
|
ansible.builtin.import_playbook: rhc.rear.hi
|
||||||
|
when: bigboot_expansion_diff | int <= 0
|
||||||
|
|
||||||
|
|
||||||
- name: Expand the /boot partition
|
- name: Expand the /boot partition
|
||||||
@ -27,23 +28,18 @@
|
|||||||
strategy: free
|
strategy: free
|
||||||
|
|
||||||
tasks:
|
tasks:
|
||||||
- name: Do we have bigboot_size
|
- name: Execute Shrink_LV/Bigboot as needed
|
||||||
ansible.builtin.debug:
|
when: bigboot_expansion_diff | int <= 0
|
||||||
msg: "bigboot_size == {{ bigboot_size }}"
|
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: Do we have bigboot_adjacent_lvm_device
|
- name: Expand the /boot partition as requested
|
||||||
ansible.builtin.debug:
|
ansible.builtin.include_role:
|
||||||
msg: "bigboot_adjacent_lvm_device == {{ bigboot_adjacent_lvm_device }}"
|
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
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user