diff --git a/scripts/ansible b/scripts/ansible index d67cac31b..b2252e4fc 100755 --- a/scripts/ansible +++ b/scripts/ansible @@ -6,18 +6,18 @@ URL="NA" if [ $(which ansible-playbook) ]; then VER=`ansible --version|head -n 1|cut -f 2 -d " "` if [ $VER="2.2.0.0" ]; then - echo "Ansible $VER installed updating" + echo "Ansible $VER installed updating to 2.4.0" pip install --upgrade ansible==2.4.0 --disable-pip-version-check # sed -i 's/StrictVersion/LooseVersion/g' /usr/lib/python2.7/dist-packages/ansible/modules/core/web_infrastructure/htpasswd.py fi exit 0 fi # TODO add check for version - to revese patching if upgrading -if [ $(which ansible-playbook) ]; then - VER=`ansible --version|head -n 1|cut -f 2 -d " "` - echo "Ansible $VER installed exiting..." - exit 0 -fi +#if [ $(which ansible-playbook) ]; then +# VER=`ansible --version|head -n 1|cut -f 2 -d " "` +# echo "Ansible $VER installed exiting..." +# exit 0 +#fi echo "Installing --- Please Wait" if [ -f /etc/fedora-release ]; then VER=`grep VERSION_ID /etc/*elease | cut -d= -f2`