diff --git a/roles/ceph-osd/tasks/activate_osds.yml b/roles/ceph-osd/tasks/activate_osds.yml index 5011f856b..34dde8f5e 100644 --- a/roles/ceph-osd/tasks/activate_osds.yml +++ b/roles/ceph-osd/tasks/activate_osds.yml @@ -69,7 +69,7 @@ - is_before_infernalis - name: get osd id (for or after infernalis) - shell: "ls /var/lib/ceph/osd/ | grep '-' | cut -d '-' -f 2" + shell: 'ls /var/lib/ceph/osd/ | grep -oP "\d+$"' changed_when: false failed_when: false register: osd_id