changed nvm command

This commit is contained in:
Gianmarco Pettinato 2021-12-27 14:23:15 +01:00
parent 5167735b5b
commit 735094b5d2

View File

@ -56,12 +56,12 @@
- name: install nvm - name: install nvm
become_user: gianm become_user: gianm
shell: zsh -c "$(wget https://raw.githubusercontent.com/nvm-sh/nvm/v0.39.1/install.sh -O -)" shell: wget -qO- 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 node - name: install node
become_user: gianm become_user: gianm
shell: nvm install --lts shell: export NVM_DIR="$([ -z "${XDG_CONFIG_HOME-}" ] && printf %s "${HOME}/.nvm" || printf %s "${XDG_CONFIG_HOME}/nvm")" [ -s "$NVM_DIR/nvm.sh" ] && \. "$NVM_DIR/nvm.sh" && nvm install --lts
args: args:
executable: /usr/bin/zsh executable: /usr/bin/zsh