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:
parent
2aa5c5563a
commit
dbd426b6f2
1 changed files with 4 additions and 4 deletions
|
@ -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."
|
||||
|
|
Loading…
Reference in a new issue