mirror of
https://github.com/iiab/iiab.git
synced 2025-03-09 15:40:17 +00:00
Update ansible
This commit is contained in:
parent
5aabcaccd4
commit
2c1c1efe4a
1 changed files with 5 additions and 5 deletions
|
@ -1,9 +1,9 @@
|
|||
#!/bin/bash -e
|
||||
|
||||
echo -e '\nATTEMPTING TO INSTALL THE LATEST (RELEASED VERSION OF) ANSIBLE.'
|
||||
echo -e 'Ensure you'"'"'re online before running this script!'
|
||||
echo -e 'OR: consider scripts/ansible-2.4.x or scripts/ansible/2.5.x "slow food" instead.'
|
||||
echo -e '\nhttps://github.com/iiab/iiab/wiki/IIAB-Installation#do-everything-from-scratch'
|
||||
echo -e 'Ensure you'"'"'re online before running this! (/opt/iiab/iiab/scripts/ansible)'
|
||||
echo -e 'ALTERNATIVE: consider scripts/ansible/2.5.x "slow food" instead.'
|
||||
echo -e 'INSTRUCTIONS: https://github.com/iiab/iiab/wiki/IIAB-Installation#do-everything-from-scratch\n'
|
||||
|
||||
GOOD_VER="2.5.4" # Ansible version for OLPC XO laptops (pip install).
|
||||
# On other OS's we install/upgrade to THE latest (released version of) Ansible.
|
||||
|
@ -54,8 +54,8 @@ if [ ! `command -v ansible-playbook` ]; then # "command -v" is POSIX compliant
|
|||
else
|
||||
#CURR_VER=`ansible --version | head -n 1 | cut -f 2 -d " "`
|
||||
CURR_VER=`ansible --version | head -1 | awk '{print $2}'` # to match iiab-install
|
||||
echo "Currently installed Ansible version is $CURR_VER"
|
||||
echo "Internet-in-a-Box generally requires Ansible version $GOOD_VER or higher."
|
||||
echo "Currently installed Ansible version is: $CURR_VER"
|
||||
echo "Internet-in-a-Box generally requires Ansible version: $GOOD_VER or higher"
|
||||
if [ -f /etc/centos-release ] || [ -f /etc/fedora-release ]; then
|
||||
echo "Please use your system's package manager (or pip if necessary) to update Ansible."
|
||||
exit 0
|
||||
|
|
Loading…
Add table
Reference in a new issue