mirror of
				https://github.com/kevinveenbirkenbach/computer-playbook.git
				synced 2025-10-31 18:29:21 +00:00 
			
		
		
		
	Optimized dev-npm role
This commit is contained in:
		
							
								
								
									
										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 | ||||
|   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" | ||||
		Reference in New Issue
	
	Block a user