Fixes to assertion logic, and cleanup of unused stuffs

This commit is contained in:
2025-05-12 14:25:51 -04:00
parent 2d7764c183
commit a64abecc65
3 changed files with 17 additions and 20 deletions

View File

@ -5,7 +5,7 @@
- name: Fail if /boot can't expand to at least 1GB
ansible.builtin.assert:
that: bigboot_size_target_fallback | human_to_bytes > bigboot_size_min | human_to_bytes
that: bigboot_size_target_fallback | human_to_bytes >= bigboot_size_min | human_to_bytes
fail_msg: "{{ bigboot_size_target_fallback | int | human_readable(unit='M') }} is less than the minimum of 1GB for /boot"
- name: Verify available space and re-check if needed
@ -23,7 +23,7 @@
- name: Update required expansion space
ansible.builtin.set_fact:
bigboot_expansion_diff:
"{{ bigboot_size_target_fallback | human_to_bytes - bigboot_boot_partsize | human_to_bytes }}"
"{{ (bigboot_size_target_fallback | human_to_bytes - bigboot_boot_partsize | human_to_bytes) }}"
- name: Re-check disk space - RESCUE
ansible.builtin.include_tasks: check_space_fallback.yml