more tidy up and sync with noop play

This commit is contained in:
Chris Hammer 2024-03-08 15:23:07 -05:00
parent 6c361ecb84
commit 87b2b0e025
2 changed files with 10 additions and 10 deletions

View File

@ -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

View File

@ -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