]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph-ansible.git/commitdiff
Run creation of empty rados index object to first monitor
authorGiulio Fidente <gfidente@redhat.com>
Tue, 24 Jul 2018 16:04:23 +0000 (18:04 +0200)
committerGuillaume Abrioux <gabrioux@redhat.com>
Wed, 25 Jul 2018 09:40:11 +0000 (11:40 +0200)
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 <gfidente@redhat.com>
roles/ceph-nfs/tasks/start_nfs.yml

index 775480d33906aa08acf10de64d28333f67ae5b74..ab12a93dc5f52d433ebb0661fe303728a37b26a0 100644 (file)
@@ -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: