From 9184b794ddf8593fc0b02e494f35c90eb159c91b Mon Sep 17 00:00:00 2001 From: Giulio Fidente Date: Tue, 24 Jul 2018 18:04:23 +0200 Subject: [PATCH] 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 (cherry picked from commit e85e5ea781e7ae251b277c1fbca83877e3ebfd82) --- roles/ceph-nfs/tasks/start_nfs.yml | 2 ++ 1 file changed, 2 insertions(+) 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: