From a39826b49b43fc4f4a7af6b3576f1634092de963 Mon Sep 17 00:00:00 2001 From: Chris Hammer Date: Fri, 16 Feb 2024 16:33:50 -0500 Subject: [PATCH] debugging wtf lol --- tasks/capture_boot_device_details.yml | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/tasks/capture_boot_device_details.yml b/tasks/capture_boot_device_details.yml index 94e5c3d..14a9fd7 100644 --- a/tasks/capture_boot_device_details.yml +++ b/tasks/capture_boot_device_details.yml @@ -8,16 +8,27 @@ ansible.builtin.set_fact: bigboot_boot_device: "{{ bigboot_boot_mount.device | regex_replace('^.*/(\\w+$)', '\\1') }}" -- name: Capture partition side for /boot parition +- name: Capture partition size for /boot parition ansible.builtin.set_fact: bigboot_boot_partsize: "{{ ansible_devices[bigboot_boot_device[:-1]].partitions[bigboot_boot_device].size }}" +- name: Debug bigboot_boot_partsize + ansible.builtin.debug: + var: bigboot_boot_partsize + - name: Capture required expansion space ansible.builtin.set_fact: bigboot_expansion_diff: "{{ bigboot_size | human_to_bytes - bigboot_boot_partsize | human_to_bytes }}" no_log: false +- name: Debug bigboot_expansion_diff + ansible.builtin.debug: + var: bigboot_expansion_diff + +- name: Boo + ansible.builtin.meta: end_host + - name: Convert size difference to MB ansible.builtin.set_fact: bigboot_size_expansion_mb: "{{ bigboot_expansion_diff | int | human_readable(unit='M') }}"