File tree Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -3,7 +3,7 @@ galaxy_info:
3
3
author : bobbyrenwick
4
4
description : An ansible role that ensures pip is installed at the version you specify.
5
5
license : WTFPL
6
- min_ansible_version : 1.2
6
+ min_ansible_version : 1.9
7
7
#
8
8
# Below are all platforms currently available. Just uncomment
9
9
# the ones that apply to your role. If you don't see your
Original file line number Diff line number Diff line change 14
14
15
15
- name : Install pip.
16
16
command : " {{ python }} {{ pip_download_dest }}/get-pip.py"
17
- sudo : yes
17
+ become : yes
18
18
when : pip_is_installed.rc != 0
19
19
20
20
- name : Delete get-pip.py.
31
31
32
32
- name : Install required version of pip.
33
33
command : " {{ pip }} install pip=={{ pip_version }}"
34
- sudo : yes
34
+ become : yes
35
35
when : pip_version != None and pip_installed_version.stdout != pip_version and "{{ pip_version | lower}}" != "latest"
36
36
37
37
- name : Upgrade to latest version of pip.
38
38
command : " {{ pip }} install -U pip"
39
39
register : pip_latest_output
40
- sudo : yes
40
+ become : yes
41
41
changed_when : pip_latest_output.stdout.find('Requirement already up-to-date') == -1
42
42
when : pip_version == None or pip_version == "LATEST"
You can’t perform that action at this time.
0 commit comments