mirror of
https://github.com/actions/runner-images.git
synced 2025-12-29 13:17:53 +08:00
add condition to ansible
This commit is contained in:
@@ -6,6 +6,13 @@
|
||||
|
||||
# Source the helpers for use with the script
|
||||
source $HELPER_SCRIPTS/document.sh
|
||||
LSB_RELEASE=$(lsb_release -rs)
|
||||
|
||||
# ppa:ansible/ansible doesn't contain packages for Ubuntu20.04
|
||||
if [ LSB_RELEASE != "20.04" ]; then
|
||||
add-apt-repository ppa:ansible/ansible
|
||||
apt-get update
|
||||
fi
|
||||
|
||||
# Install latest Ansible
|
||||
apt-get install -y --no-install-recommends ansible
|
||||
|
||||
Reference in New Issue
Block a user