mirror of https://github.com/ceph/ceph-ansible.git
only do ls on directory that exists
parent
f643209999
commit
f67e4e6bf5
|
@ -43,7 +43,7 @@
|
|||
|
||||
tasks:
|
||||
- name: get osd numbers
|
||||
shell: ls /var/lib/ceph/osd | cut -d "-" -f 2
|
||||
shell: "if [ -d /var/lib/ceph/osd ] ; then ls /var/lib/ceph/osd | cut -d '-' -f 2 ; fi"
|
||||
register: osd_ids
|
||||
changed_when: false
|
||||
|
||||
|
|
Loading…
Reference in New Issue