1
0
Fork 0
mirror of https://github.com/iiab/iiab.git synced 2025-03-09 15:40:17 +00:00

pin Ansible to 2.4.x for now (e.g. "pip install ansible==2.4.4.0" on OLPC)

This commit is contained in:
A Holt 2018-04-05 02:32:43 -04:00 committed by GitHub
parent 24b99e31fd
commit c7e611b755
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -3,7 +3,7 @@
# 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.5.0" # Ansible version for OLPC, for pip.
GOOD_VER="2.4.4" # Ansible version for OLPC, for pip.
# On other OS's we install/upgrade to the latest Ansible.
# Pin all to 2.5.x in future, if really/truly nec?
CURR_VER="undefined"
@ -41,7 +41,7 @@ if ! which ansible-playbook ; then
elif [ -f /etc/debian_version ] || (grep -qi raspbian /etc/*elease) ; then
if ( ! grep -qi ansible /etc/apt/sources.list) && [ ! -f /etc/apt/sources.list.d/ansible ]; then
apt -y install dirmngr python-pip python-setuptools python-wheel patch
echo "deb http://ppa.launchpad.net/ansible/ansible/ubuntu xenial main" \
echo "deb http://ppa.launchpad.net/ansible/ansible-2.4/ubuntu xenial main" \
>> /etc/apt/sources.list.d/ansible.list
apt-key adv --keyserver keyserver.ubuntu.com --recv-keys 93C4A3FD7BB9C367
fi