mirror of https://github.com/ceph/ceph-ansible.git
24 lines
512 B
YAML
24 lines
512 B
YAML
---
|
|
- name: set selinux permissions
|
|
shell: |
|
|
chcon -Rt svirt_sandbox_file_t {{ item }}
|
|
with_items:
|
|
- /etc/ceph
|
|
- /var/lib/ceph
|
|
changed_when: false
|
|
when:
|
|
- containerized_deployment
|
|
- sestatus is defined
|
|
- sestatus.stdout != 'Disabled'
|
|
|
|
- name: copy ceph admin keyring
|
|
copy:
|
|
src: "{{ fetch_directory }}/{{ fsid }}/etc/ceph/{{ cluster }}.client.admin.keyring"
|
|
dest: "/etc/ceph/"
|
|
owner: "ceph"
|
|
group: "ceph"
|
|
mode: "0600"
|
|
when:
|
|
- cephx
|
|
- copy_admin_key
|