mirror of
https://github.com/iiab/iiab.git
synced 2025-03-09 15:40:17 +00:00
pip upgrade to 2.4.0 for older installs
This commit is contained in:
parent
c7df5eb93d
commit
874d5a650d
1 changed files with 2 additions and 2 deletions
|
@ -7,8 +7,8 @@ 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"
|
||||
pip install --upgrade ansible==2.2.1 --disable-pip-version-check
|
||||
sed -i 's/StrictVersion/LooseVersion/g' /usr/lib/python2.7/dist-packages/ansible/modules/core/web_infrastructure/htpasswd.py
|
||||
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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue