shrink_lv/bigboot-noop.yml
2024-03-08 14:42:44 -05:00

44 lines
1.0 KiB
YAML

---
- name: Resize the /boot parition to the desired size
hosts: all
become: true
gather_facts: true
strategy: free
vars:
bigboot_size_target: 2G
tasks:
- name: Capture boot device details
ansible.builtin.import_tasks: tasks/capture_boot_device_details.yml
- name: Shrink a logical volume for /boot expansion if needed
ansible.builtin.import_tasks: tasks/capture_lv_device_details.yml
- name: Import hi playbook
ansible.builtin.import_playbook: rhc.rear.hi
when: bigboot_execute_bigboot | bool
- name: Execute logical volume and boot parition resizing
hosts: all
become: true
gather_facts: true
strategy: free
tasks:
- name: Execute Shrink_LV
ansible.builtin.debug:
msg:
- "device: {{ bigboot_adjacent_lvm_device | trim }}"
- "size : {{ bigboot_lv_shrink_size | int }}"
when: bigboot_execute_shrink_lv | bool
- name: Execute Bigboot as needed
ansible.builtin.debug:
msg: "{{ bigboot_size }}"
when: bigboot_execute_bigboot | bool