2016-05-11 00:29:27 +08:00
|
|
|
---
|
2017-09-14 04:13:53 +08:00
|
|
|
- name: set selinux permissions
|
|
|
|
shell: |
|
2018-03-30 18:50:14 +08:00
|
|
|
chcon -Rt svirt_sandbox_file_t /etc/ceph
|
2017-09-14 04:13:53 +08:00
|
|
|
changed_when: false
|
|
|
|
when:
|
2017-10-03 18:25:12 +08:00
|
|
|
- containerized_deployment
|
2017-12-12 21:55:02 +08:00
|
|
|
- ansible_os_family == 'RedHat'
|
2017-09-14 04:13:53 +08:00
|
|
|
- sestatus is defined
|
|
|
|
- sestatus.stdout != 'Disabled'
|
|
|
|
|
2018-02-16 16:04:23 +08:00
|
|
|
- name: copy ceph admin keyring when non containerized deployment
|
2016-05-11 00:29:27 +08:00
|
|
|
copy:
|
|
|
|
src: "{{ fetch_directory }}/{{ fsid }}/etc/ceph/{{ cluster }}.client.admin.keyring"
|
|
|
|
dest: "/etc/ceph/"
|
2017-01-20 17:14:35 +08:00
|
|
|
owner: "ceph"
|
|
|
|
group: "ceph"
|
|
|
|
mode: "0600"
|
2017-09-02 06:52:55 +08:00
|
|
|
when:
|
2018-02-16 16:04:23 +08:00
|
|
|
- not containerized_deployment
|
|
|
|
- cephx
|
|
|
|
- copy_admin_key
|
|
|
|
|
|
|
|
- name: copy ceph admin keyring when containerized deployment
|
|
|
|
copy:
|
|
|
|
src: "{{ fetch_directory }}/{{ fsid }}/etc/ceph/{{ cluster }}.client.admin.keyring"
|
|
|
|
dest: "/etc/ceph/"
|
|
|
|
owner: "{{ ceph_uid }}"
|
|
|
|
group: "{{ ceph_uid }}"
|
|
|
|
mode: "0600"
|
|
|
|
when:
|
|
|
|
- containerized_deployment
|
2017-09-02 06:52:55 +08:00
|
|
|
- cephx
|
|
|
|
- copy_admin_key
|