mirror of https://github.com/ceph/ceph-ansible.git
switch: copy initial mon keyring
We need to copy this key into /etc/ceph so when ceph-docker-common runs it can fetch it to the ansible server. Previously the task wasn't not failing because `fail_on_missing` was False before 2.5, so now it's True hence the failure. Signed-off-by: Sébastien Han <seb@redhat.com>pull/3016/head
parent
03e76af7b4
commit
bae0f41705
|
@ -109,6 +109,13 @@
|
|||
failed_when: false
|
||||
when: ldb_files.rc == 0
|
||||
|
||||
- name: copy mon initial keyring in /etc/ceph to satisfy fetch config task in ceph-docker-common
|
||||
command: cp /var/lib/ceph/mon/{{ cluster }}-{{ ansible_hostname }}/keyring /etc/ceph/{{ cluster }}.mon.keyring
|
||||
args:
|
||||
creates: /etc/ceph/{{ cluster }}.mon.keyring
|
||||
changed_when: false
|
||||
failed_when: false
|
||||
|
||||
roles:
|
||||
- ceph-defaults
|
||||
- ceph-handler
|
||||
|
|
Loading…
Reference in New Issue