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
This commit is contained in:
parent
2e67a07068
commit
a5b99ca742
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user