Merge "Install rsync for CentOS bootstrap" into stable/victoria

This commit is contained in:
Zuul 2021-02-04 12:21:03 +00:00 committed by Gerrit Code Review
commit 7545e41317
2 changed files with 1 additions and 4 deletions

View File

@ -71,7 +71,7 @@ case ${DISTRO_ID} in
git curl autoconf gcc gcc-c++ nc \
python3 python3-devel libselinux-python3 \
openssl-devel libffi-devel \
python3-virtualenv
python3-virtualenv rsync
;;
ubuntu|debian)
# NOTE(mgariepy) remove this on ansible 2.10 if debian is in the config/base.yml file

View File

@ -88,9 +88,6 @@ function build_ansible_runtime_venv {
# Add SELinux support to the venv
if [ -d "/usr/lib64/python3.6/site-packages/selinux/" ]; then
rsync -avX /usr/lib64/python3.6/site-packages/selinux/ /opt/ansible-runtime/lib64/python3.6/site-packages/selinux/
fi
# NOTE(noonedeadpunk) Conditional is here for compatability with CentOS 7
if [ -f "/usr/lib64/python3.6/site-packages/_selinux.cpython-36m-x86_64-linux-gnu.so" ]; then
rsync -avX /usr/lib64/python3.6/site-packages/_selinux.cpython-36m-x86_64-linux-gnu.so /opt/ansible-runtime/lib64/python3.6/site-packages/
fi
}