ceph-ansible/roles/ceph-nfs/tasks/pre_requisite_container.yml

28 lines
617 B
YAML

---
- name: set selinux permissions
shell: |
chcon -Rt svirt_sandbox_file_t {{ item }}
with_items:
- "{{ ceph_conf_key_directory }}"
- /var/lib/ceph
changed_when: false
when:
- ansible_os_family == 'RedHat'
- sestatus.stdout != 'Disabled'
- name: create dbus service file
become: true
copy:
src: "org.ganesha.nfsd.conf"
dest: /etc/dbus-1/system.d/org.ganesha.nfsd.conf
owner: "root"
group: "root"
mode: "0644"
when:
- ceph_nfs_dynamic_exports
- name: reload dbus configuration
command: "killall -SIGHUP dbus-daemon"
when:
- ceph_nfs_dynamic_exports