glusterfs.yml 620 B

12345678910111213141516
  1. ---
  2. - name: Install GlusterFS storage plugin dependencies
  3. action: "{{ ansible_pkg_mgr }} name=glusterfs-fuse state=present"
  4. when: not openshift.common.is_atomic | bool
  5. - name: Set sebooleans to allow gluster storage plugin access from containers
  6. seboolean:
  7. name: "{{ item }}"
  8. state: yes
  9. persistent: yes
  10. when: ansible_selinux and ansible_selinux.status == "enabled"
  11. with_items:
  12. - virt_use_fusefs
  13. - virt_sandbox_use_fusefs
  14. register: sebool_result
  15. failed_when: "'state' not in sebool_result and 'msg' in sebool_result and 'SELinux boolean {{ item }} does not exist' not in sebool_result.msg"