diff --git a/roles/ceph-mon/tasks/ceph_keys.yml b/roles/ceph-mon/tasks/ceph_keys.yml index d3abe917f..84f42477a 100644 --- a/roles/ceph-mon/tasks/ceph_keys.yml +++ b/roles/ceph-mon/tasks/ceph_keys.yml @@ -59,7 +59,8 @@ - include: set_osd_pool_default_pg_num.yml - name: test if rbd exists - command: ceph --cluster {{ cluster }} osd pool get rbd size + shell: | + ceph --cluster {{ cluster }} osd pool ls | grep -sq rbd changed_when: false failed_when: false register: rbd_pool_exist