Ensure CentOS nodes are selinux Permissive

CentOS 9 nodes are startng with selinux in
Enforcing mode. This is not the expected
configuration to run RDO/CentOS tests.

This patch sets selinux to permissive in pre
when running on CentOS.

Change-Id: I14dff0c0bb2d793ef4cd52ddcc2ff5ca4f870b97
Related-Bug: #1998954
This commit is contained in:
Ronelle Landy 2022-12-06 16:07:28 -05:00
parent b63515f8d4
commit e5ea2013f7

View File

@ -66,3 +66,11 @@
value: '0 2147483647'
state: present
sysctl_file: /etc/sysctl.d/99-workarounds.conf
# Reference: https://bugs.launchpad.net/tripleo/+bug/1998954
- name: Ensure CentOS runs with selinux permissive
become: true
selinux:
policy: targeted
state: permissive
when: ansible_distribution == 'CentOS'