Improved npm install process
This commit is contained in:
parent
899d0da178
commit
5c151c277d
1 changed files with 15 additions and 1 deletions
|
@ -21,6 +21,12 @@
|
|||
clone: yes
|
||||
update: yes
|
||||
|
||||
- name: Patch Gruntfile.js
|
||||
lineinfile:
|
||||
path: "{{ cyberchef_root_dir }}Gruntfile.js"
|
||||
regexp: "fixCryptoApiImports"
|
||||
line: "fixCryptoApiImports: { options: { shell: "/bin/bash" },"
|
||||
|
||||
- name: Set permissions on repo
|
||||
become: yes
|
||||
file:
|
||||
|
@ -30,7 +36,15 @@
|
|||
|
||||
- name: Install CyberChef
|
||||
become_user: cyberchef
|
||||
command: "cd {{ cyberchef_root_dir }}; npm install"
|
||||
command:
|
||||
cmd: "npm install"
|
||||
chdir: "{{ cyberchef_root_dir }}"
|
||||
|
||||
- name: Perform npm audit and fix
|
||||
become_user: cyberchef
|
||||
command:
|
||||
cmd: "npm audit fix"
|
||||
chdir: "{{ cyberchef_root_dir }}"
|
||||
|
||||
- name: Set systemd service
|
||||
become: yes
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue