Optimized dev-npm role

This commit is contained in:
Kevin Veen-Birkenbach 2025-07-15 17:46:29 +02:00
parent a8139c2e72
commit 8254bc9f07
No known key found for this signature in database
GPG Key ID: 44D8F11FD62F878E
3 changed files with 4 additions and 1 deletions

2
roles/dev-npm/Todo.md Normal file
View 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

View File

@ -0,0 +1 @@
npm_project_folder: ""

View File

@ -7,6 +7,6 @@
command: npm ci
args:
chdir: "{{ npm_project_folder }}"
when: npm_project_folder is defined
when: npm_project_folder != ""
register: npm_output
changed_when: "'added' in npm_output.stdout or 'updated' in npm_output.stdout"