add boot drive to lsblk command to better select adjacent lvm device
This commit is contained in:
@ -3,7 +3,8 @@
|
||||
ansible.builtin.shell:
|
||||
cmd: |
|
||||
set -o pipefail
|
||||
lsblk -pl -o name,type,mountpoint | grep -vi swap | grep lvm | head -1 | awk '{ print $1}'
|
||||
lsblk -pl -o name,type,mountpoint {{ bigboot_boot_mount['device'][:-1] }} \
|
||||
| grep -vi swap | grep lvm | head -1 | awk '{ print $1}'
|
||||
executable: /bin/bash
|
||||
changed_when: false
|
||||
register: bigboot_adjacent_lvm
|
||||
|
Reference in New Issue
Block a user