quick fix for installing global npm packages

Signed-off-by: Matthew Stobbs <matthew.stobbs@ucalgary.ca>
This commit is contained in:
Matthew Stobbs
2025-02-15 10:30:49 -07:00
committed by Matthew Stobbs
parent 069c4aa49e
commit ff7b20fada

View File

@@ -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: