54 lines
1.6 KiB
YAML
54 lines
1.6 KiB
YAML
---
|
|
- name: Resize the /boot parition to the desired size
|
|
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: Shrink a logical volume for /boot expansion if needed
|
|
ansible.builtin.import_tasks: tasks/bigboot_manage_lv-op.yml
|
|
|
|
|
|
- name: Import hi playbook
|
|
ansible.builtin.import_playbook: rhc.rear.hi
|
|
when: bigboot_expansion_diff | int > 0
|
|
|
|
|
|
- name: Expand the /boot partition
|
|
hosts: all
|
|
become: true
|
|
gather_facts: true
|
|
strategy: free
|
|
|
|
tasks:
|
|
- name: Something should go here
|
|
ansible.builtin.debug:
|
|
msg: "Something should go here -> {{ bigboot_size }} -> {{ bigboot_expansion_diff }}"
|
|
|
|
- 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
|