update nvm
This commit is contained in:
parent
4e00f77790
commit
b91dfdbbf4
12
local.yml
12
local.yml
@ -58,4 +58,14 @@
|
|||||||
shell: >
|
shell: >
|
||||||
curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.39.1/install.sh | bash
|
curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.39.1/install.sh | bash
|
||||||
args:
|
args:
|
||||||
creates: "{{ ansible_env.HOME }}/.nvm/nvm.sh"
|
creates: "{{ ansible_env.HOME }}/.nvm/nvm.sh"
|
||||||
|
|
||||||
|
- name: install nvm env
|
||||||
|
lineinfile:
|
||||||
|
path: /home/gianm/.zshrc
|
||||||
|
line: 'export NVM_DIR="$HOME/.nvm"
|
||||||
|
[ -s "$NVM_DIR/nvm.sh" ] && \. "$NVM_DIR/nvm.sh"
|
||||||
|
[ -s "$NVM_DIR/bash_completion" ] && \. "$NVM_DIR/bash_completion"'
|
||||||
|
|
||||||
|
- name: install node
|
||||||
|
shell: zsh && source /home/gianm/.zshrc && nvm install --lts
|
Loading…
Reference in New Issue
Block a user