glusterfs.yml 574 B

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