CentOS: Disable SELinux in litmus jobs

Similarly to integration jobs, this change disables SELinux in litmus
job, to avoid direct failure caused by selinux denials. Denials can
be reviewed by audit.log captured as part of logs.

Change-Id: I4e1a41b62c0597e0f63793c35e00fda195d4f761
This commit is contained in:
Takashi Kajinami 2022-06-09 08:42:45 +09:00
parent 61a594465f
commit 69adc6a870
1 changed files with 7 additions and 0 deletions

View File

@ -1,5 +1,12 @@
- hosts: all
tasks:
- name: Put SELinux in permissive mode
shell:
selinuxenabled && setenforce 0
become: yes
when:
- ansible_os_family == 'RedHat'
- shell:
cmd: |
set -e