mirror of https://github.com/ceph/ceph-ansible.git
24 lines
620 B
YAML
24 lines
620 B
YAML
---
|
|
- name: check if selinux is enabled
|
|
command: getenforce
|
|
register: selinuxstatus
|
|
changed_when: false
|
|
failed_when: false
|
|
check_mode: no
|
|
|
|
- name: if selinux is not disable
|
|
when: selinuxstatus.stdout != 'Disabled'
|
|
block:
|
|
- name: install nfs-ganesha-selinux and python3-policycoreutils on RHEL 8
|
|
package:
|
|
name: ['nfs-ganesha-selinux', 'python3-policycoreutils']
|
|
state: present
|
|
register: result
|
|
until: result is succeeded
|
|
|
|
- name: add ganesha_t to permissive domain
|
|
selinux_permissive:
|
|
name: ganesha_t
|
|
permissive: true
|
|
failed_when: false
|