1
0
Fork 0
mirror of https://github.com/iiab/iiab.git synced 2025-03-09 15:40:17 +00:00

NPM needs to run as sudo even if doing sudo runrole

This commit is contained in:
Mitra Ardron 2019-04-22 20:27:58 +10:00 committed by GitHub
parent 6e33ecf2c8
commit 33b6d36240
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -20,8 +20,8 @@
- cmake
state: present
- name: Run 'npm install --allow-root --unsafe-perm=true' to create /opt/iiab/distweb/node_modules (CAN TAKE ~5 MINUTES)
command: npm install --allow-root --unsafe-perm=true
- name: Run 'sudo npm install --allow-root --unsafe-perm=true' to create /opt/iiab/distweb/node_modules (CAN TAKE ~5 MINUTES)
command: sudo npm install --allow-root --unsafe-perm=true
args:
chdir: "{{ distweb_dir }}"