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

2.4.0 -> 2.4.1 - later version_gt() might flag older Ansibles

This commit is contained in:
A Holt 2017-11-08 02:12:59 -05:00 committed by GitHub
parent f687037996
commit 84f18a637d
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -9,9 +9,9 @@ URL="NA"
if [ $(which ansible-playbook) ]; then
VER=`ansible --version|head -n 1|cut -f 2 -d " "`
GOOD_VER=`echo $VER | grep ^2.4`
# 2.2.0.0 -> 2.4.0 patching was not applied -just upgrade via pip
# 2.2.0.0 -> 2.4.1+ patching was not applied -just upgrade via pip
if [ $GOOD_VER = "" ]; then
echo "Ansible $VER installed updating to 2.4.0"
echo "Ansible $VER installed updating to 2.4.1"
pip install --upgrade ansible==2.4.1 --disable-pip-version-check
exit 0
fi
@ -99,12 +99,12 @@ fi
### start ansible pip install TODO add venv location /opt/iiab/anisble
if [ $FAMILY = "olpc" ]; then
pip install ansible==2.4.0 --disable-pip-version-check
pip install ansible==2.4.1 --disable-pip-version-check
VER=`ansible --version|head -n 1|cut -f 2 -d " "`
echo "ansible version installed via pip $VER"
fi
# handle 2.2.1 -> 2.4.0 deb install undo patching
# handle 2.2.1 -> 2.4.1+ deb install undo patching
# unsure if install above will upgrade or skip - cover that now
if [ $FAMILY = "debian" ]; then
if [ ! $VER == "" ]; then