Skip to content

Commit

Permalink
Replace ansible package with shell
Browse files Browse the repository at this point in the history
  • Loading branch information
FrankApiyo committed Dec 5, 2024
1 parent 60f5e32 commit 76f6f77
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions tasks/install-nvm.yml
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
---
- name: Install Node Version Manager
include_role:
name: onaio.nvm
Expand All @@ -11,10 +12,7 @@
nvm_version: "{{ kpi_nvm_version }}"

- name: Install npm global packages
npm:
executable: "{{ kpi_nvm_npm_path }}"
global: true
name: "{{ item }}"
shell: "{{ kpi_nvm_npm_path }} install -g {{ item }}"
with_items: "{{ kpi_npm_requirements }}"
environment:
PATH: "{{ kpi_nvm_node_dir }}/bin:{{ ansible_env.PATH }}"
Expand All @@ -30,5 +28,8 @@
environment:
PATH: "{{ kpi_nvm_node_dir }}/bin:{{ ansible_env.PATH }}"
HOME: "{{ kpi_system_user_home }}"
<<<<<<< Updated upstream
notify:
- restart_service
=======
>>>>>>> Stashed changes

0 comments on commit 76f6f77

Please sign in to comment.