1
0
Fork 0
mirror of https://github.com/iiab/iiab.git synced 2025-02-13 03:32:12 +00:00

restore scripts/ansible now that Ansible 2.5.0 is released & smoke-tested

This commit is contained in:
A Holt 2018-03-23 12:50:18 -04:00 committed by GitHub
parent 3c153c098c
commit 62de11463d
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -3,9 +3,9 @@
# Installs or upgrades to the best possible Ansible release, so iiab-install
# can proceed. Ensure you're online before running this script!
GOOD_VER="2.4.2" # Ansible version for OLPC, for pip.
GOOD_VER="2.5.0" # Ansible version for OLPC, for pip.
# On other OS's we install/upgrade to the latest Ansible.
# Pin all to 2.4.x in future, if really/truly nec?
# Pin all to 2.5.x in future, if really/truly nec?
CURR_VER="undefined"
# FOUND="false" # NOT USED AS OF 2017-12-12
# FAMILY="undefined" # NOT USED AS OF 2017-12-12
@ -80,15 +80,15 @@ else
fi
if [ ! -f /etc/centos-release ] && [ ! -f /etc/fedora-release ] && [ ! -f /etc/olpc-release ]; then
# Align IIAB with Ansible community's latest
echo "Using apt to check for updates, then install/upgrade ansible"
apt update
apt -y install ansible
# TEMPORARILY USE ANSIBLE 2.4.2 DUE TO 2.4.3 MEMORY BUG. DETAILS @ https://github.com/iiab/iiab/issues/669
echo "Install http://download.iiab.io/packages/ansible_2.4.2.0-1ppa~xenial_all.deb"
cd /tmp
wget http://download.iiab.io/packages/ansible_2.4.2.0-1ppa~xenial_all.deb
apt -y --allow-downgrades install ./ansible_2.4.2.0-1ppa~xenial_all.deb
# UNCOMMENT THE FOLLOWING 3 LINES IF ANSIBLE'S LATEST RELEASES IMPROVE
#echo "Using apt to check for updates, then install/upgrade ansible"
#apt update
#apt -y install ansible
#echo "Install http://download.iiab.io/packages/ansible_2.4.2.0-1ppa~xenial_all.deb"
#cd /tmp
#wget http://download.iiab.io/packages/ansible_2.4.2.0-1ppa~xenial_all.deb
#apt -y --allow-downgrades install ./ansible_2.4.2.0-1ppa~xenial_all.deb
fi
# needed?