mirror of https://github.com/ceph/ceph-ansible.git
Merge pull request #750 from ceph/osd-id-fix
Get the correct OSD ID when the cluster name includes numberspull/757/head
commit
27bbcd2161
|
@ -69,7 +69,7 @@
|
|||
is_before_infernalis
|
||||
|
||||
- name: get osd id (for or after infernalis)
|
||||
shell: "ls /var/lib/ceph/osd/ |grep -oh '[0-9]*'"
|
||||
shell: "ls /var/lib/ceph/osd/ | grep '-' | cut -d '-' -f 2"
|
||||
changed_when: false
|
||||
failed_when: false
|
||||
register: osd_id
|
||||
|
|
Loading…
Reference in New Issue