-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathnvm.yml
More file actions
27 lines (26 loc) · 812 Bytes
/
nvm.yml
File metadata and controls
27 lines (26 loc) · 812 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
---
-
hosts: control
become: yes
become_user: dbhati
gather_facts: false
tasks:
#- name: Download nvm.sh
# get_url:
# url: https://raw.githubusercontent.com/creationix/nvm/v0.33.11/install.sh
# dest: $HOME/Downloads/nvm.sh
#- name: Run nvm.sh
# shell: cd $HOME/Downloads
# shell: sh nvm.sh
- name: Install nvm
become_user: dbhati
shell: curl -o- https://raw.githubusercontent.com/creationix/nvm/v0.33.11/install.sh | bash
- name: Setting Environment Variables for nvm
shell: export NVM_DIR="${XDG_CONFIG_HOME/:-$HOME/.}nvm"
- name: Setting Environment Variables for nvm
shell: [ -s "$NVM_DIR/nvm.sh" ]
- name: Load nvm
shell: \. "$NVM_DIR/nvm.sh" # This loads nvm
# become_user: dbhati
# shell: export NVM_DIR= $HOME/.nvm
# shell: export PATH= $HOME/.nvm