glusterfs.yml 552 B

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