Skip to content

Commit 96856e3

Browse files
committed
add umask=0002 to pip commands to work around restrictive system-wide umask
1 parent f51b8a1 commit 96856e3

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

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}}"
26+
pip: name=pip state=latest executable="{{python_pip_path}}" umask=0002
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}}"
39+
pip: name=virtualenv state=latest executable="{{python_pip_path}}" umask=0002
4040
when: python_major_version == '2'
4141

4242
- name: Install global packages
43-
pip: name="{{item}}" state=present executable="{{python_pip_path}}"
43+
pip: name="{{item}}" state=present executable="{{python_pip_path}}" umask=0002
4444
with_items: "{{python_global_packages}}"

0 commit comments

Comments
 (0)