ceph-ansible/roles/ceph-rbd-mirror/tasks/docker/selinux.yml

13 lines
279 B
YAML
Raw Normal View History

---
- name: check if selinux is enabled
command: getenforce
register: sestatus
changed_when: false
- name: set selinux permissions
shell: chcon -Rt svirt_sandbox_file_t {{ item }}
with_items:
- /etc/ceph
changed_when: false
when: sestatus.stdout != 'Disabled'