diff --git a/infrastructure-playbooks/take-over-existing-cluster.yml b/infrastructure-playbooks/take-over-existing-cluster.yml index 8347c1bef..08b31bd59 100644 --- a/infrastructure-playbooks/take-over-existing-cluster.yml +++ b/infrastructure-playbooks/take-over-existing-cluster.yml @@ -27,7 +27,8 @@ - include_vars: group_vars/all.yml - name: get the name of the existing ceph cluster - shell: "ls /etc/ceph/*.conf" + shell: | + grep -lE '\[global\]|fsid' /etc/ceph/*.conf changed_when: false register: ceph_conf