ansible-test - Fix Ubuntu 20.04 bootstrapping. (#78551)

pull/78553/head
Matt Clay 3 years ago committed by GitHub
parent 660aceaa77
commit d683c5bd21
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -0,0 +1,2 @@
bugfixes:
- ansible-test - Fix bootstrapping of Python 3.9 on Ubuntu 20.04 remotes.

@ -374,12 +374,6 @@ bootstrap_remote_ubuntu()
${pyyaml_pkg}
${resolvelib_pkg}
"
if [ "${platform_version}/${python_version}" = "20.04/3.9" ]; then
# Install pyyaml using pip so libyaml support is available on Python 3.9.
# The OS package install (which is installed by default) only has a .so file for Python 3.8.
pip_install "--upgrade pyyaml"
fi
fi
while true; do
@ -390,6 +384,14 @@ bootstrap_remote_ubuntu()
echo "Failed to install packages. Sleeping before trying again..."
sleep 10
done
if [ "${controller}" ]; then
if [ "${platform_version}/${python_version}" = "20.04/3.9" ]; then
# Install pyyaml using pip so libyaml support is available on Python 3.9.
# The OS package install (which is installed by default) only has a .so file for Python 3.8.
pip_install "--upgrade pyyaml"
fi
fi
}
bootstrap_docker()

Loading…
Cancel
Save