breakout into separate playbooks for workflow testing

This commit is contained in:
2024-04-26 14:47:38 -04:00
parent 6d19ec0fa6
commit 11db88db4c
3 changed files with 49 additions and 24 deletions

View File

@ -0,0 +1,24 @@
---
- 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 }}"
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
...