add bigboot_pv datas... correctly now

This commit is contained in:
Chris Hammer 2024-10-14 12:11:41 -04:00
parent 73c8171bbe
commit 0076a60651
2 changed files with 5 additions and 1 deletions

View File

@ -37,7 +37,7 @@
'bigboot_execute_shrink_lv': bigboot_execute_shrink_lv, 'bigboot_execute_shrink_lv': bigboot_execute_shrink_lv,
'bigboot_adjacent_lvm_device': bigboot_adjacent_lvm_device, 'bigboot_adjacent_lvm_device': bigboot_adjacent_lvm_device,
'bigboot_lv_shrink_size': bigboot_lv_shrink_size | int, '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, 'ip_addresses': ansible_all_ipv4_addresses,
'server_hostname': ansible_hostname 'server_hostname': ansible_hostname
} }

View File

@ -73,6 +73,10 @@
changed_when: false changed_when: false
register: bigboot_lv_vg_free_pe 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 - name: Format logical volume free PE
ansible.builtin.set_fact: ansible.builtin.set_fact:
# Ex: # Ex: