From db967f6aefec99b0f9ac5fe83ed2857089d37dbc Mon Sep 17 00:00:00 2001 From: Chris Hammer Date: Tue, 18 Jun 2024 09:52:35 -0400 Subject: [PATCH] regex fix to include root partition --- tasks/capture_lv_device_details.yml | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/tasks/capture_lv_device_details.yml b/tasks/capture_lv_device_details.yml index 2c0b752..05d8429 100644 --- a/tasks/capture_lv_device_details.yml +++ b/tasks/capture_lv_device_details.yml @@ -21,7 +21,12 @@ ansible.builtin.set_fact: bigboot_lvm_mounts: "{{ bigboot_lvm_mounts | default([]) + [item['key']] }}" loop: "{{ bigboot_adjacent_lvm_devices | dict2items }}" - when: item['value'] | regex_search("[a-zA-Z]") + when: item['value'] | regex_search('^/[a-zA-Z]') + +- name: Debug bigboot_lvm_mounts + ansible.builtin.debug: + var: bigboot_lvm_mounts + verbosity: 1 - name: Set adjacent LVM device name ansible.builtin.set_fact: @@ -30,6 +35,7 @@ - name: Debug bigboot_adjacent_lvm_device ansible.builtin.debug: var: bigboot_adjacent_lvm_device + verbosity: 1 - name: Get logical volume mount information ansible.builtin.set_fact: