From 0076a60651055cc7110198a8f5051743cd437279 Mon Sep 17 00:00:00 2001 From: Chris Hammer Date: Mon, 14 Oct 2024 12:11:41 -0400 Subject: [PATCH] add bigboot_pv datas... correctly now --- bigboot_setup_environment.yml | 2 +- tasks/capture_lv_device_details.yml | 4 ++++ 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/bigboot_setup_environment.yml b/bigboot_setup_environment.yml index 38b3391..89bfdd3 100644 --- a/bigboot_setup_environment.yml +++ b/bigboot_setup_environment.yml @@ -37,7 +37,7 @@ 'bigboot_execute_shrink_lv': bigboot_execute_shrink_lv, 'bigboot_adjacent_lvm_device': bigboot_adjacent_lvm_device, 'bigboot_lv_shrink_size': bigboot_lv_shrink_size | int, - 'bigboot_pv': bigboot_boot_mount['device'][:-1] + bigboot_boot_mount['device'][-1:] | int + 1, + 'bigboot_pv': bigboot_pv, 'ip_addresses': ansible_all_ipv4_addresses, 'server_hostname': ansible_hostname } diff --git a/tasks/capture_lv_device_details.yml b/tasks/capture_lv_device_details.yml index 86574b4..3bcba5b 100644 --- a/tasks/capture_lv_device_details.yml +++ b/tasks/capture_lv_device_details.yml @@ -73,6 +73,10 @@ changed_when: false register: bigboot_lv_vg_free_pe +- name: Capture the PV device + ansible.builtin.set_fact: + bigboot_pv: "{{ bigboot_boot_mount['device'][:-1] }}{{ bigboot_boot_mount['device'][-1:] | int + 1 }}" + - name: Format logical volume free PE ansible.builtin.set_fact: # Ex: