From a5b99ca742a95a7ce5af63fb54ec9269201f12b2 Mon Sep 17 00:00:00 2001 From: Jonathan Rosser Date: Wed, 2 Feb 2022 21:02:58 +0000 Subject: [PATCH] Remove symlinking of selinux libraries into the ansible-runtime venv Core ansible modules that need selinux have been migrated to use ctypes functions [1]. [1] https://github.com/ansible/ansible/blob/devel/lib/ansible/module_utils/compat/selinux.py Change-Id: I40c9c41f2e5cb432199492eb4cf5a75bb1b6b0b0 --- scripts/scripts-library.sh | 6 ------ 1 file changed, 6 deletions(-) diff --git a/scripts/scripts-library.sh b/scripts/scripts-library.sh index d9c21d247e..c40560ab65 100755 --- a/scripts/scripts-library.sh +++ b/scripts/scripts-library.sh @@ -87,12 +87,6 @@ function build_ansible_runtime_venv { if [[ -e /etc/ci/mirror_info.sh ]]; then ${PIP_COMMAND} install --isolated ${PIP_OPTS} systemd-python fi - - # Add SELinux support to the venv - if [ -d "/usr/lib64/python3.8/site-packages/selinux/" ]; then - rsync -avX /usr/lib64/python3.8/site-packages/selinux/ /opt/ansible-runtime/lib64/python3.8/site-packages/selinux/ - rsync -avX /usr/lib64/python3.8/site-packages/_selinux.cpython-36m-x86_64-linux-gnu.so /opt/ansible-runtime/lib64/python3.8/site-packages/ - fi } # If in OpenStack-Infra, set some vars to use the mirror when bootstrapping Ansible