mirror of
https://github.com/kevinveenbirkenbach/computer-playbook.git
synced 2025-05-14 17:24:57 +02:00
12 lines
303 B
YAML
12 lines
303 B
YAML
- 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" |