update nvm
This commit is contained in:
parent
6f2a477e10
commit
814955cf55
18
local.yml
18
local.yml
@ -55,26 +55,10 @@
|
||||
|
||||
- name: install nvm
|
||||
become_user: gianm
|
||||
shell: >
|
||||
curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.39.1/install.sh | bash
|
||||
shell: zsh -c "$(wget https://raw.githubusercontent.com/nvm-sh/nvm/v0.39.1/install.sh -O -)"
|
||||
args:
|
||||
creates: "{{ ansible_env.HOME }}/.nvm/nvm.sh"
|
||||
|
||||
- name: install nvm env
|
||||
lineinfile:
|
||||
path: /home/gianm/.zshrc
|
||||
line: 'export NVM_DIR="$HOME/.nvm"'
|
||||
|
||||
- name: install nvm env
|
||||
lineinfile:
|
||||
path: /home/gianm/.zshrc
|
||||
line: '[ -s "$NVM_DIR/nvm.sh" ] && \. "$NVM_DIR/nvm.sh"'
|
||||
|
||||
- name: install nvm env
|
||||
lineinfile:
|
||||
path: /home/gianm/.zshrc
|
||||
line: '[ -s "$NVM_DIR/bash_completion" ] && \. "$NVM_DIR/bash_completion"'
|
||||
|
||||
- name: install node
|
||||
become: true
|
||||
become_user: gianm
|
||||
|
Loading…
Reference in New Issue
Block a user