1
0
Fork 0
mirror of https://github.com/iiab/iiab.git synced 2025-02-14 20:22:08 +00:00

tighten up regexp

This commit is contained in:
Jerry Vonau 2017-09-27 16:40:03 -05:00
parent 8804ac9263
commit 1b2d4e1c7d

View file

@ -5,7 +5,7 @@ URL="NA"
# TODO add check for version - to revese patching if upgrading
if [ $(which ansible-playbook) ]; then
VER=`ansible --version|head -n 1|cut -f 2 -d " "`
GOOD_VER=`echo $VER | grep 2.4 | wc -l`
GOOD_VER=`echo $VER | grep ^2.4 | wc -l`
if [ $VER = "2.2.0.0" ]; then
echo "Ansible $VER installed updating to 2.4.0"
pip install --upgrade ansible==2.4.0 --disable-pip-version-check
@ -13,7 +13,6 @@ if [ $(which ansible-playbook) ]; then
fi
fi
# TODO add check for version - to revese patching if upgrading
#if [ $(which ansible-playbook) ]; then
# VER=`ansible --version|head -n 1|cut -f 2 -d " "`