add boot drive to lsblk command to better select adjacent lvm device

This commit is contained in:
2024-06-05 13:54:01 -04:00
parent 813d6dbae5
commit 235049b91e
3 changed files with 126 additions and 1 deletions

View File

@ -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