Refinements
This commit is contained in:
parent
a64abecc65
commit
999ab17dfd
@ -94,18 +94,14 @@
|
|||||||
# Free PE / Size 0 / 0
|
# Free PE / Size 0 / 0
|
||||||
bigboot_lv_vg_free_pe: "{{ bigboot_lv_vg_free_pe['stdout'] | regex_replace('^.*/.*/\\s+[<]?(.*)', '\\1') }}"
|
bigboot_lv_vg_free_pe: "{{ bigboot_lv_vg_free_pe['stdout'] | regex_replace('^.*/.*/\\s+[<]?(.*)', '\\1') }}"
|
||||||
|
|
||||||
- name: Get size in MB for PE and
|
- name: Get size in MB for available PE
|
||||||
ansible.builtin.set_fact:
|
ansible.builtin.set_fact:
|
||||||
bigboot_lv_pe_size_in_mb:
|
bigboot_lv_pe_size_in_mb:
|
||||||
"{{ bigboot_lv_vg_free_pe | regex_replace('i|\\s+|<', '') | human_to_bytes | human_readable(unit='M') }}"
|
"{{ bigboot_lv_vg_free_pe | regex_replace('i|\\s+|<', '') | human_to_bytes | human_readable(unit='M') }}"
|
||||||
|
|
||||||
# - name: Debug size vars
|
|
||||||
# ansible.builtin.debug:
|
|
||||||
# msg: "{{ bigboot_lv_pe_size_in_mb[:-3] | int | round }} <-> {{ bigboot_size[:-1] }}"
|
|
||||||
|
|
||||||
- name: Verify available PE for the volume group
|
- name: Verify available PE for the volume group
|
||||||
block:
|
block:
|
||||||
- name: Set required variables for shrinking the target LV
|
- name: Set variables required for shrinking the target LV
|
||||||
ansible.builtin.set_fact:
|
ansible.builtin.set_fact:
|
||||||
bigboot_execute_shrink_lv: false
|
bigboot_execute_shrink_lv: false
|
||||||
bigboot_expansion_diff_mb: "{{ bigboot_expansion_diff | int | human_readable(unit='M') }}"
|
bigboot_expansion_diff_mb: "{{ bigboot_expansion_diff | int | human_readable(unit='M') }}"
|
||||||
|
Loading…
x
Reference in New Issue
Block a user