1
0
Fork 0
mirror of https://github.com/iiab/iiab.git synced 2025-02-12 11:12:06 +00:00

shortened to CURR_ANSIBLE_VER, similar to CURR_KERN

This commit is contained in:
A Holt 2017-11-09 21:30:48 -05:00 committed by GitHub
parent 2aa5c5563a
commit dbd426b6f2
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -37,12 +37,12 @@ fi
# Verify that a recent enough version of Ansible is installed. See #449. The
# "include:" command was inconsistently implemented prior to Ansible 2.4.x.x
CURRENT_ANSIBLE_VER=0
CURR_ANSIBLE_VER=0
if [[ `type -P ansible` ]]; then
CURRENT_ANSIBLE_VER=`ansible --version | head -1 | sed -e 's/.* //'`
echo "Found Ansible "$CURRENT_ANSIBLE_VER""
CURR_ANSIBLE_VER=`ansible --version | head -1 | sed -e 's/.* //'`
echo "Found Ansible "$CURR_ANSIBLE_VER""
fi
if version_gt $MIN_ANSIBLE_VER $CURRENT_ANSIBLE_VER; then
if version_gt $MIN_ANSIBLE_VER $CURR_ANSIBLE_VER; then
echo "IIAB requires Ansible "$MIN_ANSIBLE_VER" or higher. Prior versions can often"
echo "be removed with 'apt purge ansible' or 'pip uninstall ansible'. We recommend"
echo "you run './scripts/ansible' to install the latest Ansible from PPA or RPM."