Files
puppet-openstack-integration/playbooks/prepare-node-beaker.yaml
Takashi Kajinami ba73591f22 Update selinux mode by root
This change fixes the remaining error while setting selinux permissive.

TASK [Disable selinux (CentOS/RHEL<=7) (bug/1927210)]
...
centos-7 | OSError: [Errno 13] Permission denied

Related-Bug: #1927210
Change-Id: Id04e62980501f2f8e94ef6ab9b53c221ba8e231a
2021-05-06 08:32:56 +09:00

36 lines
1.2 KiB
YAML

- hosts: all
tasks:
- 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
- block:
- name: Disable selinux (CentOS/RHEL<=7) (bug/1927210)
selinux:
policy: targeted
state: permissive
become: true
when:
- ansible_os_family == 'RedHat'
- ansible_distribution != "Fedora"
- ansible_distribution_major_version <= "7"