mirror of
https://github.com/iiab/iiab.git
synced 2025-02-12 19:22:24 +00:00
update ansible check to 2.4.1
This commit is contained in:
parent
53224d0c05
commit
d315f14526
1 changed files with 4 additions and 4 deletions
|
@ -10,13 +10,13 @@ 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
|
||||
if [ $VER = "2.2.0.0" ]; then
|
||||
if [ $GOOD_VER = "" ]; then
|
||||
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.1 --disable-pip-version-check
|
||||
exit 0
|
||||
fi
|
||||
# keep an eye out for 2.4.0.X in the future
|
||||
if [ $VER = "2.4.0.0" ]; then
|
||||
# keep an eye out for 2.4.1.X in the future
|
||||
if [ $VER = "2.4.1.0" ]; then
|
||||
echo "Ansible $VER installed exiting..."
|
||||
exit 0
|
||||
fi
|
||||
|
|
Loading…
Reference in a new issue