mirror of
https://github.com/actions/runner-images.git
synced 2026-01-10 04:35:12 +08:00
Merge branch 'v-mitim/add_ubuntu_20_to_ci' of https://github.com/miketimofeev/virtual-environments into v-mitim/add_ubuntu_20_to_ci
This commit is contained in:
@@ -6,6 +6,15 @@
|
|||||||
|
|
||||||
# Source the helpers for use with the script
|
# Source the helpers for use with the script
|
||||||
source $HELPER_SCRIPTS/document.sh
|
source $HELPER_SCRIPTS/document.sh
|
||||||
|
source $HELPER_SCRIPTS/os.sh
|
||||||
|
|
||||||
|
imageLabel=$(getOSVersionLabel)
|
||||||
|
|
||||||
|
# ppa:ansible/ansible doesn't contain packages for Ubuntu20.04
|
||||||
|
if [ $imageLabel != "focal" ]; then
|
||||||
|
add-apt-repository ppa:ansible/ansible
|
||||||
|
apt-get update
|
||||||
|
fi
|
||||||
|
|
||||||
# Install latest Ansible
|
# Install latest Ansible
|
||||||
apt-get install -y --no-install-recommends ansible
|
apt-get install -y --no-install-recommends ansible
|
||||||
|
|||||||
Reference in New Issue
Block a user