From: Sébastien Han Date: Thu, 11 Feb 2016 21:51:23 +0000 (+0100) Subject: ceph-osd: simply the regex to check the device X-Git-Tag: v1.0.0~38^2~1 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=b285a5ae8f5bf516ded758cd29bcd9267d7e83ba;p=ceph-ansible.git ceph-osd: simply the regex to check the device Signed-off-by: Sébastien Han --- diff --git a/roles/ceph-osd/tasks/check_devices.yml b/roles/ceph-osd/tasks/check_devices.yml index d38869606..7721046d2 100644 --- a/roles/ceph-osd/tasks/check_devices.yml +++ b/roles/ceph-osd/tasks/check_devices.yml @@ -11,7 +11,7 @@ # for SSD journals. - name: check if the device is a partition - shell: "echo '{{ item }}' | egrep '/dev/(sd[a-z]{1,2}|hd[a-z]{1,2}|cciss/c[0-9]d[0-9]p|nvme[0-9]n[0-9]p)[0-9]{1,2}$'" + shell: "echo '{{ item }}' | egrep '/dev/({h,s,v}d[a-z]{1,2}|cciss/c[0-9]d[0-9]p|nvme[0-9]n[0-9]p)[0-9]{1,2}$'" with_items: devices changed_when: false failed_when: false @@ -19,7 +19,7 @@ when: not osd_auto_discovery - name: check if the device is a partition (autodiscover disks) - shell: "echo '/dev/{{ item.key }}' | egrep '/dev/(sd[a-z]{1,2}|hd[a-z]{1,2}|cciss/c[0-9]d[0-9]p|nvme[0-9]n[0-9]p)[0-9]{1,2}$'" + shell: "echo '/dev/{{ item.key }}' | egrep '/dev/({h,s,v}d[a-z]{1,2}|cciss/c[0-9]d[0-9]p|nvme[0-9]n[0-9]p)[0-9]{1,2}$'" with_dict: ansible_devices changed_when: false failed_when: false