diff --git a/scripts/ansible b/scripts/ansible index 4921cbed7..5dceae0fc 100755 --- a/scripts/ansible +++ b/scripts/ansible @@ -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?