update nvm

This commit is contained in:
Gianmarco Pettinato 2021-12-25 19:41:20 +01:00
parent 6f2a477e10
commit 814955cf55
1 changed files with 1 additions and 17 deletions

View File

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