use function in ansible
This commit is contained in:
@@ -6,10 +6,12 @@
|
|||||||
|
|
||||||
# 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
|
||||||
LSB_RELEASE=$(lsb_release -rs)
|
source $HELPER_SCRIPTS/os.sh
|
||||||
|
|
||||||
|
imageLabel=$(getOSVersionLabel)
|
||||||
|
|
||||||
# ppa:ansible/ansible doesn't contain packages for Ubuntu20.04
|
# ppa:ansible/ansible doesn't contain packages for Ubuntu20.04
|
||||||
if [ LSB_RELEASE != "20.04" ]; then
|
if [ $imageLabel != "focal" ]; then
|
||||||
add-apt-repository ppa:ansible/ansible
|
add-apt-repository ppa:ansible/ansible
|
||||||
apt-get update
|
apt-get update
|
||||||
fi
|
fi
|
||||||
|
|||||||
Reference in New Issue
Block a user