mirror of
https://github.com/iiab/iiab.git
synced 2025-02-15 04:32:11 +00:00
tighten up regexp
This commit is contained in:
parent
8804ac9263
commit
1b2d4e1c7d
1 changed files with 1 additions and 2 deletions
|
@ -5,7 +5,7 @@ URL="NA"
|
||||||
# TODO add check for version - to revese patching if upgrading
|
# TODO add check for version - to revese patching if upgrading
|
||||||
if [ $(which ansible-playbook) ]; then
|
if [ $(which ansible-playbook) ]; then
|
||||||
VER=`ansible --version|head -n 1|cut -f 2 -d " "`
|
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
|
if [ $VER = "2.2.0.0" ]; then
|
||||||
echo "Ansible $VER installed updating to 2.4.0"
|
echo "Ansible $VER installed updating to 2.4.0"
|
||||||
pip install --upgrade ansible==2.4.0 --disable-pip-version-check
|
pip install --upgrade ansible==2.4.0 --disable-pip-version-check
|
||||||
|
@ -13,7 +13,6 @@ if [ $(which ansible-playbook) ]; then
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
|
||||||
# TODO add check for version - to revese patching if upgrading
|
# TODO add check for version - to revese patching if upgrading
|
||||||
#if [ $(which ansible-playbook) ]; then
|
#if [ $(which ansible-playbook) ]; then
|
||||||
# VER=`ansible --version|head -n 1|cut -f 2 -d " "`
|
# VER=`ansible --version|head -n 1|cut -f 2 -d " "`
|
||||||
|
|
Loading…
Reference in a new issue