diff --git a/bigboot-wip.yml b/bigboot-wip.yml new file mode 100644 index 0000000..87ae395 --- /dev/null +++ b/bigboot-wip.yml @@ -0,0 +1,27 @@ +--- +- name: Perform logical volume and boot parition resizing as needed + hosts: all + become: true + gather_facts: true + strategy: free + + vars_files: + - bigboot_vars.yml + + tasks: + - name: Cleanup from any previous executions + ansible.builtin.import_tasks: tasks/cleanup.yml + + - name: Shrink the logical volume to support /boot expansion + ansible.builtin.import_role: + name: infra.lvm_snapshots.shrink_lv + vars: + shrink_lv_devices: + - device: "/dev/mapper/system-root" + size: "53687091200" + + - name: Expand the /boot partition as requested + ansible.builtin.import_role: + name: infra.lvm_snapshots.bigboot + vars: + bigboot_partition_size: "{{ bigboot_size_target }}" diff --git a/bigboot_execute_resize.yml b/bigboot_execute_resize.yml index 51efa90..7dcb792 100644 --- a/bigboot_execute_resize.yml +++ b/bigboot_execute_resize.yml @@ -35,7 +35,7 @@ ansible.builtin.import_role: name: infra.lvm_snapshots.bigboot vars: - bigboot_partition_size: "{{ bigboot_data[inventory_hostname]['bigboot_size'] }}" + bigboot_partition_size: "{{ bigboot_size_target }}" when: - bigboot_data[inventory_hostname]['bigboot_execute_bigboot'] | bool