blob: 4fd9cd10b63a3554ee20aa610f3d44ddd56387eb (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
|
---
- name: Install GlusterFS storage plugin dependencies
action: "{{ ansible_pkg_mgr }} name=glusterfs-fuse state=present"
when: not openshift.common.is_atomic | bool
- name: Check for existence of virt_use_fusefs seboolean
command: getsebool virt_use_fusefs
register: virt_use_fusefs_output
when: ansible_selinux and ansible_selinux.status == "enabled"
failed_when: false
changed_when: false
- name: Set seboolean to allow gluster storage plugin access from containers
seboolean:
name: virt_use_fusefs
state: yes
persistent: yes
when: ansible_selinux and ansible_selinux.status == "enabled" and virt_use_fusefs_output.rc == 0
- name: Check for existence of virt_sandbox_use_fusefs seboolean
command: getsebool virt_sandbox_use_fusefs
register: virt_sandbox_use_fusefs_output
when: ansible_selinux and ansible_selinux.status == "enabled"
failed_when: false
changed_when: false
- name: Set seboolean to allow gluster storage plugin access from containers(sandbox)
seboolean:
name: virt_sandbox_use_fusefs
state: yes
persistent: yes
when: ansible_selinux and ansible_selinux.status == "enabled" and virt_sandbox_use_fusefs_output.rc == 0
|