2016-05-11 00:29:27 +08:00
|
|
|
---
|
2017-09-14 04:13:53 +08:00
|
|
|
- name: set selinux permissions
|
|
|
|
shell: |
|
|
|
|
chcon -Rt svirt_sandbox_file_t {{ item }}
|
|
|
|
with_items:
|
|
|
|
- /etc/ceph
|
|
|
|
- /var/lib/ceph
|
|
|
|
changed_when: false
|
|
|
|
when:
|
|
|
|
- sestatus is defined
|
|
|
|
- sestatus.stdout != 'Disabled'
|
|
|
|
- containerized_deployment
|
|
|
|
|
2016-05-11 00:29:27 +08:00
|
|
|
- name: copy ceph admin keyring
|
|
|
|
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:
|
|
|
|
- cephx
|
|
|
|
- copy_admin_key
|
2017-02-09 17:54:49 +08:00
|
|
|
|
2017-09-15 06:48:53 +08:00
|
|
|
- name: set_fact global_in_ceph_conf_overrides
|
2017-02-09 17:54:49 +08:00
|
|
|
set_fact:
|
|
|
|
global_in_ceph_conf_overrides: "{{ 'global' in ceph_conf_overrides }}"
|