From: Giulio Fidente Date: Tue, 24 Jul 2018 16:04:23 +0000 (+0200) Subject: Run creation of empty rados index object to first monitor X-Git-Tag: v3.2.0beta2~102 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=e85e5ea781e7ae251b277c1fbca83877e3ebfd82;p=ceph-ansible.git Run creation of empty rados index object to first monitor When distributing ceph-nfs role, creation of rados index object fails as it assumes availability of client.admin locally. Closes: https://bugzilla.redhat.com/show_bug.cgi?id=1607970 Signed-off-by: Giulio Fidente --- diff --git a/roles/ceph-nfs/tasks/start_nfs.yml b/roles/ceph-nfs/tasks/start_nfs.yml index 775480d33..ab12a93dc 100644 --- a/roles/ceph-nfs/tasks/start_nfs.yml +++ b/roles/ceph-nfs/tasks/start_nfs.yml @@ -13,6 +13,8 @@ when: - ceph_nfs_rados_backend - rados_index_exists.rc != 0 + delegate_to: "{{ groups[mon_group_name][0] }}" + run_once: true - name: create /etc/ganesha file: