From 2b1159dd109ceb8f1f1228068d93c27d82979702 Mon Sep 17 00:00:00 2001 From: Guillaume Abrioux Date: Wed, 12 Sep 2018 15:02:06 +0200 Subject: [PATCH] nfs: ignore error on semanage command for ganesha_t As of rhel 7.6, it has been decided it doesn't make sense to confine `ganesha_t` anymore. It means this domain won't exist anymore. Let's add a `failed_when: false` in order to make the deployment not failing when trying to run this command. Closes: https://bugzilla.redhat.com/show_bug.cgi?id=1626070 Signed-off-by: Guillaume Abrioux (cherry picked from commit a6f77340fd942c7ce1a969347215cc5e3b18b1b2) --- roles/ceph-nfs/tasks/ganesha_selinux_fix.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/roles/ceph-nfs/tasks/ganesha_selinux_fix.yml b/roles/ceph-nfs/tasks/ganesha_selinux_fix.yml index 0aa3c66ed..7c5759ef3 100644 --- a/roles/ceph-nfs/tasks/ganesha_selinux_fix.yml +++ b/roles/ceph-nfs/tasks/ganesha_selinux_fix.yml @@ -23,6 +23,7 @@ - name: run semanage permissive -a ganesha_t command: semanage permissive -a ganesha_t changed_when: false + failed_when: false when: - selinuxstatus.stdout != 'Disabled' - ganesha_t_permissive.rc != 0 -- 2.47.3