47 lines
1.2 KiB
YAML
47 lines
1.2 KiB
YAML
---
|
|
- name: Capture boot and logical volume information
|
|
hosts: all
|
|
become: true
|
|
gather_facts: true
|
|
strategy: free
|
|
|
|
vars:
|
|
bigboot_size_target: 1G
|
|
|
|
|
|
tasks:
|
|
- name: Capture boot device details
|
|
ansible.builtin.import_tasks: tasks/capture_boot_device_details.yml
|
|
|
|
- name: Capture logical volume information
|
|
ansible.builtin.import_tasks: tasks/capture_lv_device_details.yml
|
|
|
|
|
|
- name: Perform a ReaR backup if any disk modifications are to be made
|
|
ansible.builtin.import_playbook: rhc.rear.rear_backup
|
|
when:
|
|
- bigboot_execute_bigboot | bool
|
|
|
|
|
|
- name: Perform logical volume and boot parition resizing as needed
|
|
hosts: all
|
|
become: true
|
|
gather_facts: true
|
|
strategy: free
|
|
|
|
tasks:
|
|
- name: Expand the logical volume to support /boot expansion
|
|
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.import_role:
|
|
name: infra.lvm_snapshots.bigboot
|
|
when: bigboot_execute_bigboot | bool
|