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 hosts: all
become: true become: true
gather_facts: true gather_facts: true
strategy: free strategy: free
vars: vars:
bigboot_size_target: 2G bigboot_size_target: 1G
tasks: tasks:
@ -17,27 +17,27 @@
ansible.builtin.import_tasks: tasks/capture_lv_device_details.yml ansible.builtin.import_tasks: tasks/capture_lv_device_details.yml
- name: Import hi playbook - 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 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 hosts: all
become: true become: true
gather_facts: true gather_facts: true
strategy: free strategy: free
tasks: tasks:
- name: Execute Shrink_LV - name: Expand the logical volume if needed to support /boot expansion
ansible.builtin.debug: ansible.builtin.debug:
msg: msg:
- "device: {{ bigboot_adjacent_lvm_device | trim }}" - "device: {{ bigboot_adjacent_lvm_device | trim }}"
- "size : {{ bigboot_lv_shrink_size | int }}" - "size : {{ bigboot_lv_shrink_size | int }}"
when: bigboot_execute_shrink_lv | bool when: bigboot_execute_shrink_lv | bool
- name: Execute Bigboot as needed - name: Expand the /boot partition as requested
ansible.builtin.debug: ansible.builtin.debug:
msg: "{{ bigboot_size }}" msg: "{{ bigboot_size }}"
when: bigboot_execute_bigboot | bool when: bigboot_execute_bigboot | bool

View File

@ -18,7 +18,7 @@
- name: Perform a ReaR backup if any disk modifications are to be made - 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: when:
- bigboot_execute_bigboot | bool or bigboot_execute_shrink_lv | bool - bigboot_execute_bigboot | bool or bigboot_execute_shrink_lv | bool