From a890c169a5c203944c24a5d010154f79bcf79bdc Mon Sep 17 00:00:00 2001 From: A Holt Date: Tue, 25 Sep 2018 15:18:13 -0400 Subject: [PATCH] Update ansible --- scripts/ansible | 15 +++++++++------ 1 file changed, 9 insertions(+), 6 deletions(-) diff --git a/scripts/ansible b/scripts/ansible index 876ce6863..9bed9e139 100755 --- a/scripts/ansible +++ b/scripts/ansible @@ -6,16 +6,19 @@ GOOD_VER="2.6.4" # For XO laptops (pip install) & CentOS (yum install rpm) export DEBIAN_FRONTEND=noninteractive -echo -e "\n\nSTRONGLY RECOMMENDED PREREQUISITES: (1) remove all prior versions of Ansible" -echo -e "using 'apt purge ansible' &/or 'pip uninstall ansible' (2) clear out all lines" -echo -e "containing ansible from /etc/apt/sources.list and /etc/apt/sources.list.d/*\n" +echo -e "\n\nYOU ARE RUNNING: /opt/iiab/iiab/scripts/ansible" +echo -e 'Alternative: Run /opt/iiab/iiab/scripts/ansible-2.6.x ("slow food")\n' + +echo -e "RECOMMENDED PREREQUISITES:" +echo -e "(1) Verify you're online" +echo -e "(2) Remove all prior versions of Ansible using" +echo -e " 'apt purge ansible' and/or 'pip uninstall ansible'" +echo -e "(3) Remove all lines containing 'ansible' from" +echo -e " /etc/apt/sources.list and /etc/apt/sources.list.d/*\n" echo -e "COMPLETE INSTALL INSTRUCTIONS:" echo -e "https://github.com/iiab/iiab/wiki/IIAB-Installation#do-everything-from-scratch\n" -echo -e "VERIFY YOU'RE ONLINE BEFORE RUNNING THIS: /opt/iiab/iiab/scripts/ansible" -echo -e 'Alternative: Run /opt/iiab/iiab/scripts/ansible-2.6.x ("slow food")\n' - if [ $(command -v ansible-playbook) ]; then # "command -v" is POSIX compliant; also catches built-in commands like "cd" CURR_VER=`ansible --version | head -1 | awk '{print $2}'` # To match iiab-install. Was: CURR_VER=`ansible --version | head -n 1 | cut -f 2 -d " "` echo "Currently installed Ansible: $CURR_VER"