mirror of
https://github.com/actions/runner-images.git
synced 2025-12-15 06:08:07 +00:00
[Ubuntu] use pipx to install ansible (#3015)
* use pipx to install ansible * update info
This commit is contained in:
committed by
GitHub
parent
ecfee9c8ec
commit
436d9baa95
@@ -4,16 +4,11 @@
|
||||
## Desc: Installs Ansible
|
||||
################################################################################
|
||||
|
||||
# Source the helpers for use with the script
|
||||
source $HELPER_SCRIPTS/os.sh
|
||||
|
||||
# ppa:ansible/ansible doesn't contain packages for Ubuntu20.04
|
||||
if isUbuntu16 || isUbuntu18 ; then
|
||||
add-apt-repository ppa:ansible/ansible
|
||||
apt-get update
|
||||
fi
|
||||
|
||||
# this script is used only on Ubuntu 16.04
|
||||
# for Ubuntu 18.04 and 20.04 we use pipx ansible-base package
|
||||
# Install latest Ansible
|
||||
add-apt-repository ppa:ansible/ansible
|
||||
apt-get update
|
||||
apt-get install -y --no-install-recommends ansible
|
||||
|
||||
invoke_tests "Tools" "Ansible"
|
||||
|
||||
Reference in New Issue
Block a user