diff --git a/scripts/ansible b/scripts/ansible index 4ae9924e0..34353fae4 100755 --- a/scripts/ansible +++ b/scripts/ansible @@ -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