From 806293ac1abfd7e203ae2acb22dde76f9cd3a480 Mon Sep 17 00:00:00 2001 From: Chris Hammer Date: Mon, 17 Jun 2024 13:42:25 -0400 Subject: [PATCH] split line up --- tasks/capture_lv_device_details.yml | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) 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