blob: a357023e1f6d46e40f2a77a4762bd57e0d94126d (
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
|
---
- name: Install GlusterFS storage plugin dependencies
yum:
pkg: glusterfs-fuse
state: installed
when: ansible_pkg_mgr == "yum"
- name: Install GlusterFS storage plugin dependencies
dnf:
pkg: glusterfs-fuse
state: installed
when: ansible_pkg_mgr == "dnf"
- name: Set sebooleans to allow gluster storage plugin access from containers
seboolean:
name: "{{ item }}"
state: yes
persistent: yes
when: ansible_selinux and ansible_selinux.status == "enabled"
with_items:
- virt_use_fusefs
- virt_sandbox_use_fusefs
register: sebool_result
failed_when: "'state' not in sebool_result and 'msg' in sebool_result and 'SELinux boolean {{ item }} does not exist' not in sebool_result.msg"
|