quick fix for installing global npm packages
Signed-off-by: Matthew Stobbs <matthew.stobbs@ucalgary.ca>
This commit is contained in:
committed by
Matthew Stobbs
parent
069c4aa49e
commit
ff7b20fada
@@ -81,9 +81,12 @@
|
||||
file: go.yml
|
||||
|
||||
- name: Install local npm packages
|
||||
when:
|
||||
- npm_pkgs|length > 0
|
||||
loop: "{{ npm_pkgs | unique }}"
|
||||
become: "{% if ansible_system == 'Linux' %}true{% else %}false{% endif %}"
|
||||
community.general.npm:
|
||||
global: true
|
||||
name: "{{ npmpkg }}"
|
||||
state: latest
|
||||
loop: "{{ npmpkgs | unique }}"
|
||||
loop_control:
|
||||
loop_var: pkg
|
||||
ansible.builtin.include_tasks:
|
||||
|
||||
Reference in New Issue
Block a user