diff --git a/bigboot-noop.yml b/bigboot-noop.yml index 9184d91..6772cdc 100644 --- a/bigboot-noop.yml +++ b/bigboot-noop.yml @@ -1,12 +1,12 @@ --- -- name: Resize the /boot parition to the desired size +- name: Capture boot and logical volume information hosts: all become: true gather_facts: true strategy: free vars: - bigboot_size_target: 2G + bigboot_size_target: 1G tasks: @@ -17,27 +17,27 @@ ansible.builtin.import_tasks: tasks/capture_lv_device_details.yml -- name: Import hi playbook - ansible.builtin.import_playbook: rhc.rear.hi - when: bigboot_execute_bigboot | bool +- 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 or bigboot_execute_shrink_lv | bool -- name: Execute logical volume and boot parition resizing +- name: Perform logical volume and boot parition resizing as needed hosts: all become: true gather_facts: true strategy: free tasks: - - name: Execute Shrink_LV + - name: Expand the logical volume if needed to support /boot expansion ansible.builtin.debug: msg: - "device: {{ bigboot_adjacent_lvm_device | trim }}" - "size : {{ bigboot_lv_shrink_size | int }}" when: bigboot_execute_shrink_lv | bool - - name: Execute Bigboot as needed + - name: Expand the /boot partition as requested ansible.builtin.debug: msg: "{{ bigboot_size }}" when: bigboot_execute_bigboot | bool - diff --git a/bigboot-op.yml b/bigboot-op.yml index 0f9cbf9..6fadc08 100644 --- a/bigboot-op.yml +++ b/bigboot-op.yml @@ -18,7 +18,7 @@ - name: Perform a ReaR backup if any disk modifications are to be made - ansible.builtin.import_playbook: rhc.rear.hi + ansible.builtin.import_playbook: rhc.rear.rear_backup when: - bigboot_execute_bigboot | bool or bigboot_execute_shrink_lv | bool