Minor tweaks
This commit is contained in:
parent
d0caf12112
commit
68140fc346
@ -18,12 +18,12 @@
|
||||
|
||||
- name: Debug bigboot_lv_info
|
||||
ansible.builtin.debug:
|
||||
msg: "{{ bigboot_lv_info['size_available'] }} -> {{ bigboot_expansion_diff }} -> {{ bigboot_lv_size_min | human_to_bytes }}"
|
||||
msg: "{{ bigboot_lv_info['size_available'] }} - {{ bigboot_expansion_diff }} == {{ (bigboot_lv_info['size_available'] - bigboot_expansion_diff | int) }} -> {{ bigboot_lv_size_min | human_to_bytes }}"
|
||||
|
||||
- name: Assert that there will be enough space left over on the target LV
|
||||
ansible.builtin.assert:
|
||||
that: (bigboot_lv_info['size_available'] - bigboot_expansion_diff | int) >= bigboot_lv_size_min | human_to_bytes
|
||||
success_msg: "There will be enough space left over with a boot size of {{ bigboot_size_target_fallback | int | human_readable(unit='G') }}."
|
||||
success_msg: "There will be enough space left over with a boot size of {{ bigboot_size_target_fallback | int | human_readable(unit='G') }}. ({{ (bigboot_lv_info['size_available'] - bigboot_expansion_diff | int) | human_readable(unit='M') }})"
|
||||
fail_msg: "There will NOT be enough space left over with a boot size of {{ bigboot_size_target_fallback | int | human_readable(unit='G') }}. Aborting Bigboot execution."
|
||||
|
||||
rescue:
|
||||
|
Loading…
x
Reference in New Issue
Block a user