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
|
file: go.yml
|
||||||
|
|
||||||
- name: Install local npm packages
|
- name: Install local npm packages
|
||||||
when:
|
become: "{% if ansible_system == 'Linux' %}true{% else %}false{% endif %}"
|
||||||
- npm_pkgs|length > 0
|
community.general.npm:
|
||||||
loop: "{{ npm_pkgs | unique }}"
|
global: true
|
||||||
|
name: "{{ npmpkg }}"
|
||||||
|
state: latest
|
||||||
|
loop: "{{ npmpkgs | unique }}"
|
||||||
loop_control:
|
loop_control:
|
||||||
loop_var: pkg
|
loop_var: pkg
|
||||||
ansible.builtin.include_tasks:
|
ansible.builtin.include_tasks:
|
||||||
|
|||||||
Reference in New Issue
Block a user