diff --git a/local.yml b/local.yml index 7a04e35..a64e15e 100644 --- a/local.yml +++ b/local.yml @@ -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