mirror of https://github.com/ceph/ceph-ansible.git
Merge pull request #639 from ceph/enhance-regex
ceph-osd: fix regex to check partitionspull/629/merge
commit
20c3c88995
|
@ -11,7 +11,7 @@
|
|||
# for SSD journals.
|
||||
|
||||
- name: check if the device is a partition
|
||||
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}$'"
|
||||
shell: "echo '{{ item }}' | egrep '/dev/([hsv]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/({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}$'"
|
||||
shell: "echo '/dev/{{ item.key }}' | egrep '/dev/([hsv]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
|
||||
|
|
Loading…
Reference in New Issue