1
0
Fork 0
mirror of https://github.com/iiab/iiab.git synced 2025-02-13 11:42:08 +00:00

Merge pull request #671 from holta/ansible-2.4.3-to-2.4.2

install Ansible 2.4.2 on RPi/Deb/Ubuntu from download.iiab.io (until 2.4.3 fixed!)
This commit is contained in:
A Holt 2018-02-11 19:20:43 -05:00 committed by GitHub
commit ffba469f24
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.4.3" # Ansible version for OLPC, for pip.
GOOD_VER="2.4.2" # 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?
CURR_VER="undefined"
@ -20,7 +20,7 @@ if ! which ansible-playbook ; then
yum -y install ca-certificates nss epel-release
yum -y install git bzip2 file findutils gzip hg svn sudo tar which unzip xz zip libselinux-python
yum -y install python-pip python-setuptools python-wheel patch
yum -y install http://releases.ansible.com/ansible/rpm/release/epel-7-x86_64/ansible-2.4.3.0-1.el7.ans.noarch.rpm
yum -y install http://releases.ansible.com/ansible/rpm/release/epel-7-x86_64/ansible-2.4.2.0-1.el7.ans.noarch.rpm
# FOUND="true"
# FAMILY="redhat"
# elif [ -f /etc/fedora-release ]; then
@ -81,8 +81,13 @@ fi
if [ ! -f /etc/centos-release ] && [ ! -f /etc/fedora-release ] && [ ! -f /etc/olpc-release ]; then
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
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 2 LINES IF ANSIBLE'S LATEST RELEASES IMPROVE
#apt update
#apt -y install ansible
fi
# needed?