File tree Expand file tree Collapse file tree 2 files changed +6
-3
lines changed Expand file tree Collapse file tree 2 files changed +6
-3
lines changed Original file line number Diff line number Diff line change @@ -42,3 +42,6 @@ python_dependencies:
42
42
- python-dev
43
43
- tk-dev
44
44
- zlib1g-dev
45
+
46
+ # Needed to get around restrictive umask on CIS-supplied images. Setting to Ubuntu default of 0022.
47
+ python_pip_umask : ' 0022'
Original file line number Diff line number Diff line change 23
23
when : pip_installed.stat.exists == false
24
24
25
25
- name : Upgrade pip
26
- pip : name=pip state=latest executable="{{python_pip_path}}" umask=0002
26
+ pip : name=pip state=latest executable="{{python_pip_path}}" umask="{{python_pip_umask}}"
27
27
28
28
- name : Add system pip.conf
29
29
template :
36
36
37
37
# Install packages
38
38
- name : Install/upgrade virtualenv
39
- pip : name=virtualenv state=latest executable="{{python_pip_path}}" umask=0002
39
+ pip : name=virtualenv state=latest executable="{{python_pip_path}}" umask="{{python_pip_umask}}"
40
40
when : python_major_version == '2'
41
41
42
42
- name : Install global packages
43
- pip : name="{{item}}" state=present executable="{{python_pip_path}}" umask=0002
43
+ pip : name="{{item}}" state=present executable="{{python_pip_path}}" umask="{{python_pip_umask}}"
44
44
with_items : " {{python_global_packages}}"
You can’t perform that action at this time.
0 commit comments