From e733a4b8bb187126f437afb05852365653d05561 Mon Sep 17 00:00:00 2001 From: Jeffrey Zhang Date: Thu, 21 Dec 2017 14:20:12 +0800 Subject: [PATCH] Fix wrong ceph mgr keyring name during creating ceph mgr should use the each node name rather than the first node inventory_hostname Change-Id: Ib4530ee95b4201a941b836a3fbcbe27d2d03b06f --- ansible/roles/ceph/tasks/start_mgrs.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ansible/roles/ceph/tasks/start_mgrs.yml b/ansible/roles/ceph/tasks/start_mgrs.yml index 13ed47a6b1..721364d731 100644 --- a/ansible/roles/ceph/tasks/start_mgrs.yml +++ b/ansible/roles/ceph/tasks/start_mgrs.yml @@ -1,6 +1,6 @@ --- - name: Getting ceph mgr keyring - command: docker exec ceph_mon ceph auth get-or-create mgr.{{ inventory_hostname }} mon 'allow profile mgr' osd 'allow *' mds 'allow *' + command: docker exec ceph_mon ceph auth get-or-create mgr.{{ item }} mon 'allow profile mgr' osd 'allow *' mds 'allow *' register: ceph_mgr_keyring run_once: true delegate_to: "{{ groups['ceph-mon'][0] }}"