From: Guillaume Abrioux Date: Wed, 12 Sep 2018 13:02:06 +0000 (+0200) Subject: nfs: ignore error on semanage command for ganesha_t X-Git-Tag: v3.2.0beta2~10 X-Git-Url: http://git.apps.os.sepia.ceph.com/?a=commitdiff_plain;h=a6f77340fd942c7ce1a969347215cc5e3b18b1b2;p=ceph-ansible.git 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 --- diff --git a/roles/ceph-nfs/tasks/ganesha_selinux_fix.yml b/roles/ceph-nfs/tasks/ganesha_selinux_fix.yml index 226ce5be7..3546c8280 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