]> git-server-git.apps.pok.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)
committermergify[bot] <mergify[bot]@users.noreply.github.com>
Thu, 13 Sep 2018 13:29:00 +0000 (13:29 +0000)
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>
(cherry picked from commit a6f77340fd942c7ce1a969347215cc5e3b18b1b2)

roles/ceph-nfs/tasks/ganesha_selinux_fix.yml

index 0aa3c66edc0fc2c72f71d19008bb747097fc3424..7c5759ef37405a1cd28de58620826a9bd807e9a9 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