puppet-openstack-integration/playbooks/prepare-node-litmus.yaml
Takashi Kajinami 69adc6a870 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
2022-06-10 17:45:26 +00:00

32 lines
1.1 KiB
YAML

- hosts: all
tasks:
- name: Put SELinux in permissive mode
shell:
selinuxenabled && setenforce 0
become: yes
when:
- ansible_os_family == 'RedHat'
- shell:
cmd: |
set -e
set -x
if [ -d /home/zuul/src/opendev.org/$ZUUL_PROJECT ]; then
cp -dR /home/zuul/src/opendev.org/$ZUUL_PROJECT/. .
else
git clone https://opendev.org/$ZUUL_PROJECT .
fi
if [ -d /home/zuul/src/opendev.org/openstack/puppet-openstack-integration ]; then
[ ! -d puppet-openstack-integration ] && mkdir puppet-openstack-integration
cp -dR /home/zuul/src/opendev.org/openstack/puppet-openstack-integration/. puppet-openstack-integration
else
git clone https://opendev.org/openstack/puppet-openstack-integration puppet-openstack-integration
fi
executable: /bin/bash
chdir: '{{ ansible_user_dir }}/workspace'
environment: '{{ zuul | zuul_legacy_vars }}'
- include_role:
name: bindep