Improved npm install process

This commit is contained in:
Philip (a-0) 2022-07-29 00:45:13 +02:00
parent 899d0da178
commit 5c151c277d

View file

@ -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