mirror of
https://github.com/iiab/iiab.git
synced 2025-02-15 04:32:11 +00:00
2.4.0 -> 2.4.1 - later version_gt() might flag older Ansibles
This commit is contained in:
parent
f687037996
commit
84f18a637d
1 changed files with 4 additions and 4 deletions
|
@ -9,9 +9,9 @@ URL="NA"
|
||||||
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`
|
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
|
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
|
pip install --upgrade ansible==2.4.1 --disable-pip-version-check
|
||||||
exit 0
|
exit 0
|
||||||
fi
|
fi
|
||||||
|
@ -99,12 +99,12 @@ fi
|
||||||
|
|
||||||
### start ansible pip install TODO add venv location /opt/iiab/anisble
|
### start ansible pip install TODO add venv location /opt/iiab/anisble
|
||||||
if [ $FAMILY = "olpc" ]; then
|
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 " "`
|
VER=`ansible --version|head -n 1|cut -f 2 -d " "`
|
||||||
echo "ansible version installed via pip $VER"
|
echo "ansible version installed via pip $VER"
|
||||||
fi
|
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
|
# unsure if install above will upgrade or skip - cover that now
|
||||||
if [ $FAMILY = "debian" ]; then
|
if [ $FAMILY = "debian" ]; then
|
||||||
if [ ! $VER == "" ]; then
|
if [ ! $VER == "" ]; then
|
||||||
|
|
Loading…
Reference in a new issue