Skip to content

Commit

Permalink
Ensure npm package.json is writable if it exists
Browse files Browse the repository at this point in the history
  • Loading branch information
proycon committed Dec 2, 2021
1 parent c317934 commit 318dbcf
Showing 1 changed file with 12 additions and 1 deletion.
13 changes: 12 additions & 1 deletion roles/jupyter/tasks/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@
package:
pip: ipywidgets

- name: Ensure npm package-lock is writable if it exists
- name: Ensure npm package-lock.json is writable if it exists
become: "{{lm_become}}"
become_user: root
file:
Expand All @@ -40,6 +40,17 @@
group: "{{unix_group}}"
ignore_errors: "yes"

- name: Ensure npm package.json is writable if it exists
become: "{{lm_become}}"
become_user: root
file:
path: "{{lm_prefix}}/package.json"
mode: u+rwx,a+rx
state: file
owner: "{{unix_user}}"
group: "{{unix_group}}"
ignore_errors: "yes"

- name: Installing configurable-http-proxy
include_role:
name: lamachine-run
Expand Down

0 comments on commit 318dbcf

Please sign in to comment.