mirror of
https://github.com/kevinveenbirkenbach/computer-playbook.git
synced 2025-07-19 15:04:23 +02:00
Optimized dev-npm role
This commit is contained in:
parent
a8139c2e72
commit
8254bc9f07
2
roles/dev-npm/Todo.md
Normal file
2
roles/dev-npm/Todo.md
Normal file
@ -0,0 +1,2 @@
|
|||||||
|
# Todos
|
||||||
|
- This role seems unused atm, adapt it to your needs as soon as you implement it and remove this message
|
1
roles/dev-npm/defaults/main.yml
Normal file
1
roles/dev-npm/defaults/main.yml
Normal file
@ -0,0 +1 @@
|
|||||||
|
npm_project_folder: ""
|
@ -7,6 +7,6 @@
|
|||||||
command: npm ci
|
command: npm ci
|
||||||
args:
|
args:
|
||||||
chdir: "{{ npm_project_folder }}"
|
chdir: "{{ npm_project_folder }}"
|
||||||
when: npm_project_folder is defined
|
when: npm_project_folder != ""
|
||||||
register: npm_output
|
register: npm_output
|
||||||
changed_when: "'added' in npm_output.stdout or 'updated' in npm_output.stdout"
|
changed_when: "'added' in npm_output.stdout or 'updated' in npm_output.stdout"
|
Loading…
x
Reference in New Issue
Block a user