Updates
This commit is contained in:
@ -66,7 +66,7 @@
|
||||
- name: Capture shrink and fallback sizes
|
||||
ansible.builtin.set_fact:
|
||||
# we need to get the BLOCK size total, not the filesystem
|
||||
bigboot_lv_shrink_size: "{{ (bigboot_lv_partsize | int - bigboot_expansion_diff | int) | get_block_size_down_bytes }}"
|
||||
bigboot_lv_shrink_size: "{{ bigboot_lv_partsize | int - bigboot_expansion_diff | int }}"
|
||||
bigboot_size_target_fallback: "{{ bigboot_size_target_fallback | int | human_readable(unit='G') | regex_replace('\\sGB', 'G') }}"
|
||||
|
||||
- name: Debug bigboot_lv_shrink_size and bigboot_size_target_fallback
|
||||
@ -108,14 +108,9 @@
|
||||
ansible.builtin.set_fact:
|
||||
bigboot_lv_vg_pe_size: "{{ bigboot_lv_vg_pe_capture | regex_replace('^.*\\s+(\\d+.\\d+).*$', '\\1M') | human_to_bytes }}"
|
||||
|
||||
- name: Subtract one additional PE for shrinking
|
||||
- name: Subtract an additional 2 PE for shrinking
|
||||
ansible.builtin.set_fact:
|
||||
bigboot_lv_shrink_size: "{{ bigboot_lv_shrink_size | int - (bigboot_lv_vg_pe_size | int * 2) }}"
|
||||
# when:
|
||||
# - bigboot_size_target_fallback | human_to_bytes < bigboot_size_target | human_to_bytes
|
||||
|
||||
# - name: Kill the play
|
||||
# ansible.builtin.meta: end_host
|
||||
|
||||
- name: Capture the PV device
|
||||
ansible.builtin.set_fact:
|
||||
|
Reference in New Issue
Block a user