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
This commit is contained in:
Jeffrey Zhang 2017-12-21 14:20:12 +08:00
parent 6c24e5c92f
commit e733a4b8bb
1 changed files with 1 additions and 1 deletions

View File

@ -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] }}"