From 814955cf55486731f18c96db63d7cee40d094965 Mon Sep 17 00:00:00 2001 From: Gianmarco Pettinato Date: Sat, 25 Dec 2021 19:41:20 +0100 Subject: [PATCH] update nvm --- local.yml | 18 +----------------- 1 file changed, 1 insertion(+), 17 deletions(-) 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