From cc491feb9cbd3628ff3f9fe1276c6a376e6799b1 Mon Sep 17 00:00:00 2001 From: A Holt Date: Sun, 11 Feb 2018 18:16:00 -0500 Subject: [PATCH 1/3] temporarily install Ansible 2.4.2 on RPi/Deb/Ubuntu (from download.iiab.io) --- scripts/ansible | 13 +++++++++---- 1 file changed, 9 insertions(+), 4 deletions(-) diff --git a/scripts/ansible b/scripts/ansible index 4861545eb..7b4c0026c 100755 --- a/scripts/ansible +++ b/scripts/ansible @@ -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 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? From 8f682f463bb20ca275a6c55f1e0ee159058b9937 Mon Sep 17 00:00:00 2001 From: A Holt Date: Sun, 11 Feb 2018 18:24:44 -0500 Subject: [PATCH 2/3] apt -y install ./ansible_2.4.2... --- scripts/ansible | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/ansible b/scripts/ansible index 7b4c0026c..8478a4aab 100755 --- a/scripts/ansible +++ b/scripts/ansible @@ -84,7 +84,7 @@ if [ ! -f /etc/centos-release ] && [ ! -f /etc/fedora-release ] && [ ! -f /etc/o # 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 install ./ansible_2.4.2.0-1ppa~xenial_all.deb + apt -y 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 From 9e55dac62628ccea94717674a9c4d0eb7e9e1556 Mon Sep 17 00:00:00 2001 From: A Holt Date: Sun, 11 Feb 2018 18:29:41 -0500 Subject: [PATCH 3/3] apt -y --allow-downgrades install ./ansible_2.4.2... --- scripts/ansible | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/ansible b/scripts/ansible index 8478a4aab..19a864b0d 100755 --- a/scripts/ansible +++ b/scripts/ansible @@ -84,7 +84,7 @@ if [ ! -f /etc/centos-release ] && [ ! -f /etc/fedora-release ] && [ ! -f /etc/o # 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 install ./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