Created
December 14, 2015 17:49
-
-
Save gad0lin/5c7b934d6fe772a7741a to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
- shell: curl --silent --show-error --retry 5 https://bootstrap.pypa.io/get-pip.py | sudo python | |
when: "{{ pip_version.stdout| ge_version('7.0.0') }} == False" | |
def ge_version(given, minimum_required): | |
if given == "": | |
return False | |
def versiontuple(v): | |
return tuple(map(int, (v.split(".")))) | |
return versiontuple(given) >= versiontuple(minimum_required) | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment