]> git.apps.os.sepia.ceph.com Git - ceph-ansible.git/commitdiff
nfs: ignore error on semanage command for ganesha_t
authorGuillaume Abrioux <gabrioux@redhat.com>
Wed, 12 Sep 2018 13:02:06 +0000 (15:02 +0200)
committerGuillaume Abrioux <gabrioux@redhat.com>
Thu, 13 Sep 2018 11:06:47 +0000 (13:06 +0200)
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 <gabrioux@redhat.com>
roles/ceph-nfs/tasks/ganesha_selinux_fix.yml

index 226ce5be7b76f5b66f06784e8ccd8c1c1d03437f..3546c8280f76d1f387381b59fb12d12ec91a56ee 100644 (file)
@@ -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