The systemd unit regex doesn't handle nvme devices (/dev/nvmeXn1).
Closes: https://bugzilla.redhat.com/show_bug.cgi?id=1687828
Signed-off-by: Dimitri Savineau <dsavinea@redhat.com>
(cherry picked from commit
c8442f3705d0bd7b64fe2b14d925a82d52a052e4)
when: not containerized_deployment
- name: get osd unit names - container
- shell: systemctl list-units | grep -E "loaded * active" | grep -oE "ceph-osd@([0-9]{1,}|[a-z]+).service"
+ shell: systemctl list-units | grep -E "loaded * active" | grep -oE "ceph-osd@([a-z0-9]+).service"
register: osd_names
changed_when: false
when: containerized_deployment