From: David Galloway Date: Wed, 10 Dec 2025 21:21:30 +0000 (-0500) Subject: testnode: Strip partitions from root_disk X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=refs%2Fpull%2F802%2Fhead;p=ceph-cm-ansible.git testnode: Strip partitions from root_disk Signed-off-by: David Galloway --- diff --git a/roles/testnode/tasks/configure_lvm.yml b/roles/testnode/tasks/configure_lvm.yml index 773cce1f..c4c06896 100644 --- a/roles/testnode/tasks/configure_lvm.yml +++ b/roles/testnode/tasks/configure_lvm.yml @@ -1,7 +1,7 @@ --- - name: Set root disk set_fact: - root_disk: "{{ item.device|regex_replace('[0-9]+', '')|regex_replace('/dev/', '') }}" + root_disk: "{{ item.device | regex_replace('p?[0-9]+$', '') | regex_replace('^/dev/', '') }}" with_items: "{{ ansible_mounts }}" when: - item.mount == '/'