mirror of
https://github.com/iiab/iiab.git
synced 2025-03-09 15:40:17 +00:00
everybody will need to upgrade for now
This commit is contained in:
parent
874d5a650d
commit
f8d663d713
1 changed files with 6 additions and 6 deletions
|
@ -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`
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue