]> git.apps.os.sepia.ceph.com Git - ceph-ansible.git/commit
ceph-nfs: apply selinux fix anyway
authorDimitri Savineau <dsavinea@redhat.com>
Thu, 18 Apr 2019 14:02:12 +0000 (10:02 -0400)
committerGuillaume Abrioux <gabrioux@redhat.com>
Mon, 20 May 2019 11:04:58 +0000 (13:04 +0200)
commit0ee833432eb5d2b4998002c495ff08a65a3b26c6
tree84eb05486bda59b52be54661549bf648adfba4a4
parent0c7fd79865d216d1caa1228bbbc9c021551ab12c
ceph-nfs: apply selinux fix anyway

Because ansible_distribution_version doesn't return minor version on
CentOS with ansible 2.8 we can apply the selinux anyway but only for
CentOS/RHEL 7.
Starting RHEL 8, there's a dedicated package for selinux called
nfs-ganesha-selinux [1].

Also replace the command module + semanage by the selinux_permissive
module.

[1] https://github.com/nfs-ganesha/nfs-ganesha/commit/a7911f

Signed-off-by: Dimitri Savineau <dsavinea@redhat.com>
roles/ceph-nfs/tasks/ganesha_selinux_fix.yml
roles/ceph-nfs/tasks/main.yml