Skip to content

Commit e4f1d53

Browse files
committed
change hard-coded umask to default var
1 parent 96856e3 commit e4f1d53

File tree

2 files changed

+6
-3
lines changed

2 files changed

+6
-3
lines changed

defaults/main.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,3 +42,6 @@ python_dependencies:
4242
- python-dev
4343
- tk-dev
4444
- 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'

tasks/main.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@
2323
when: pip_installed.stat.exists == false
2424

2525
- 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}}"
2727

2828
- name: Add system pip.conf
2929
template:
@@ -36,9 +36,9 @@
3636

3737
# Install packages
3838
- 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}}"
4040
when: python_major_version == '2'
4141

4242
- 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}}"
4444
with_items: "{{python_global_packages}}"

0 commit comments

Comments
 (0)