update nvm
This commit is contained in:
parent
6f2a477e10
commit
814955cf55
18
local.yml
18
local.yml
@ -55,26 +55,10 @@
|
|||||||
|
|
||||||
- name: install nvm
|
- name: install nvm
|
||||||
become_user: gianm
|
become_user: gianm
|
||||||
shell: >
|
shell: zsh -c "$(wget https://raw.githubusercontent.com/nvm-sh/nvm/v0.39.1/install.sh -O -)"
|
||||||
curl -o- 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 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
|
- name: install node
|
||||||
become: true
|
become: true
|
||||||
become_user: gianm
|
become_user: gianm
|
||||||
|
Loading…
Reference in New Issue
Block a user