From: Sébastien Han Date: Thu, 23 Feb 2017 20:39:55 +0000 (-0500) Subject: infra: fix cluster name detection X-Git-Tag: v2.2.0rc1~20^2 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=refs%2Fpull%2F1330%2Fhead;p=ceph-ansible.git infra: fix cluster name detection The previous command was returning /etc/ceph/ceph.conf, we only need 'ceph' to be returned. Signed-off-by: Sébastien Han --- diff --git a/infrastructure-playbooks/take-over-existing-cluster.yml b/infrastructure-playbooks/take-over-existing-cluster.yml index 08b31bd59..1e3df7697 100644 --- a/infrastructure-playbooks/take-over-existing-cluster.yml +++ b/infrastructure-playbooks/take-over-existing-cluster.yml @@ -28,7 +28,7 @@ - name: get the name of the existing ceph cluster shell: | - grep -lE '\[global\]|fsid' /etc/ceph/*.conf + basename $(grep -R fsid /etc/ceph/ | egrep -o '^[^.]*') changed_when: false register: ceph_conf