update nvm
This commit is contained in:
parent
4e00f77790
commit
b91dfdbbf4
10
local.yml
10
local.yml
@ -59,3 +59,13 @@
|
|||||||
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