47 lines
1.4 KiB
YAML
47 lines
1.4 KiB
YAML
---
|
|
- name: Perform logical volume and boot parition resizing as needed
|
|
hosts: all
|
|
become: true
|
|
gather_facts: true
|
|
strategy: free
|
|
|
|
tasks:
|
|
- name: Run a filesystem check prior to performing disk activities
|
|
ansible.builtin.import_role:
|
|
name: autofsck
|
|
tasks_from: main.yml
|
|
when:
|
|
- (bigboot_execute_shrink_lv | bool or bigboot_execute_bigboot | bool)
|
|
|
|
- name: Extend the timeout values for physical hosts
|
|
ansible.builtin.set_fact:
|
|
initramfs_post_reboot_delay: 300
|
|
initramfs_reboot_timeout: 14400
|
|
when:
|
|
- "'host' in ansible_virtualization_role"
|
|
|
|
- name: Shrink 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 }}"
|
|
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
|
|
|
|
- name: Cleanup Grub menu parameters for fsck
|
|
ansible.builtin.import_role:
|
|
name: autofsck
|
|
tasks_from: cleanup.yml
|
|
when:
|
|
- (bigboot_execute_shrink_lv | bool or bigboot_execute_bigboot | bool)
|
|
|
|
...
|