changed nvm command
This commit is contained in:
parent
5167735b5b
commit
735094b5d2
@ -56,12 +56,12 @@
|
||||
|
||||
- name: install nvm
|
||||
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:
|
||||
creates: "{{ ansible_env.HOME }}/.nvm/nvm.sh"
|
||||
|
||||
- name: install node
|
||||
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:
|
||||
executable: /usr/bin/zsh
|
Loading…
Reference in New Issue
Block a user