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>
(cherry picked from commit
bae0f41705e4ca25492a7ff0169490331b897874)
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-docker-common