update nvm

This commit is contained in:
Gianmarco Pettinato 2021-12-25 18:52:02 +01:00
parent 4e00f77790
commit b91dfdbbf4

View File

@ -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