2018-04-11 23:15:29 +08:00
|
|
|
---
|
|
|
|
- name: copy rbd-mirror bootstrap key
|
|
|
|
copy:
|
|
|
|
src: "{{ fetch_directory }}/{{ fsid }}/var/lib/ceph/bootstrap-rbd/{{ cluster }}.keyring"
|
|
|
|
dest: "/var/lib/ceph/bootstrap-rbd/{{ cluster }}.keyring"
|
|
|
|
owner: "{{ ceph_uid if containerized_deployment else 'ceph' }}"
|
|
|
|
group: "{{ ceph_uid if containerized_deployment else 'ceph' }}"
|
2018-06-25 21:12:56 +08:00
|
|
|
mode: "{{ ceph_keyring_permissions }}"
|
2018-04-11 23:15:29 +08:00
|
|
|
when:
|
2019-09-10 02:33:55 +08:00
|
|
|
- cephx
|
|
|
|
|
|
|
|
- name: copy ceph admin keyring if needed
|
|
|
|
copy:
|
|
|
|
src: "{{ fetch_directory }}/{{ fsid }}/etc/ceph/{{ cluster }}.client.admin.keyring"
|
|
|
|
dest: "/etc/ceph/{{ cluster }}.client.admin.keyring"
|
|
|
|
owner: "{{ ceph_uid if containerized_deployment else 'ceph' }}"
|
|
|
|
group: "{{ ceph_uid if containerized_deployment else 'ceph' }}"
|
|
|
|
mode: "{{ ceph_keyring_permissions }}"
|
|
|
|
when:
|
|
|
|
- cephx | bool
|
|
|
|
- copy_admin_key | bool
|