ceph-ansible/roles/ceph-client/tasks/pre_requisite.yml

21 lines
606 B
YAML

---
- name: set selinux permissions
shell: |
chcon -Rt svirt_sandbox_file_t /etc/ceph
changed_when: false
when:
- containerized_deployment
- ansible_os_family == 'RedHat'
- sestatus is defined
- sestatus.stdout != 'Disabled'
- name: copy ceph admin keyring if needed
copy:
src: "{{ fetch_directory }}/{{ fsid }}/etc/ceph/{{ cluster }}.client.admin.keyring"
dest: "/etc/ceph/"
owner: "{{ ceph_uid if containerized_deployment else 'ceph' }}"
group: "{{ ceph_uid if containerized_deployment else 'ceph' }}"
mode: "0600"
when:
- cephx
- copy_admin_key