split line up
This commit is contained in:
parent
fe354b45bc
commit
806293ac1a
@ -10,8 +10,11 @@
|
|||||||
register: bigboot_adjacent_lvm
|
register: bigboot_adjacent_lvm
|
||||||
|
|
||||||
- name: Map the device to its mount point if applicable
|
- name: Map the device to its mount point if applicable
|
||||||
ansible.builtin.set_fact:
|
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')}) }}"
|
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'] }}"
|
loop: "{{ bigboot_adjacent_lvm['stdout_lines'] }}"
|
||||||
|
|
||||||
- name: Capture the device name of the mounted logical volumes
|
- name: Capture the device name of the mounted logical volumes
|
||||||
|
Loading…
x
Reference in New Issue
Block a user