diff --git a/tasks/capture_lv_device_details.yml b/tasks/capture_lv_device_details.yml index d8854dd..1f26c1b 100644 --- a/tasks/capture_lv_device_details.yml +++ b/tasks/capture_lv_device_details.yml @@ -10,8 +10,11 @@ register: bigboot_adjacent_lvm - name: Map the device to its mount point if applicable - ansible.builtin.set_fact: - bigboot_adjacent_lvm_devices: "{{ bigboot_adjacent_lvm_devices | default([]) | combine({item | split(' ') | first: ansible_facts['mounts'] | selectattr('device', 'equalto', item | split(' ') | first) | map(attribute='mount')}) }}" + ansible.builtin.set_fact: > + bigboot_adjacent_lvm_devices: "{{ bigboot_adjacent_lvm_devices | default([]) + | combine({item | split(' ') | first: ansible_facts['mounts'] + | selectattr('device', 'equalto', item | split(' ') | first) + | map(attribute='mount')}) }}" loop: "{{ bigboot_adjacent_lvm['stdout_lines'] }}" - name: Capture the device name of the mounted logical volumes