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

Update ansible

This commit is contained in:
A Holt 2018-09-25 15:18:13 -04:00 committed by GitHub
parent 2c06ff29a7
commit a890c169a5
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -6,16 +6,19 @@ GOOD_VER="2.6.4" # For XO laptops (pip install) & CentOS (yum install rpm)
export DEBIAN_FRONTEND=noninteractive export DEBIAN_FRONTEND=noninteractive
echo -e "\n\nSTRONGLY RECOMMENDED PREREQUISITES: (1) remove all prior versions of Ansible" echo -e "\n\nYOU ARE RUNNING: /opt/iiab/iiab/scripts/ansible"
echo -e "using 'apt purge ansible' &/or 'pip uninstall ansible' (2) clear out all lines" echo -e 'Alternative: Run /opt/iiab/iiab/scripts/ansible-2.6.x ("slow food")\n'
echo -e "containing ansible from /etc/apt/sources.list and /etc/apt/sources.list.d/*\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 "COMPLETE INSTALL INSTRUCTIONS:"
echo -e "https://github.com/iiab/iiab/wiki/IIAB-Installation#do-everything-from-scratch\n" 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" 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 " "` 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" echo "Currently installed Ansible: $CURR_VER"