mirror of
https://github.com/kevinveenbirkenbach/computer-playbook.git
synced 2025-08-29 15:06:26 +02:00
Cleaning up of gen roles
This commit is contained in:
12
roles/dev-npm/tasks/main.yml
Normal file
12
roles/dev-npm/tasks/main.yml
Normal file
@@ -0,0 +1,12 @@
|
||||
- name: Ensure npm is installed
|
||||
package:
|
||||
name: npm
|
||||
state: present
|
||||
|
||||
- name: Run 'npm ci'
|
||||
command: npm ci
|
||||
args:
|
||||
chdir: "{{ npm_project_folder }}"
|
||||
when: npm_project_folder is defined
|
||||
register: npm_output
|
||||
changed_when: "'added' in npm_output.stdout or 'updated' in npm_output.stdout"
|
Reference in New Issue
Block a user