update nvm

This commit is contained in:
Gianmarco Pettinato 2021-12-27 14:00:58 +01:00
parent bf7e11e50e
commit 197064f459

View File

@ -33,29 +33,28 @@
msg: "skipping install oh my zsh" msg: "skipping install oh my zsh"
when: zsh_dir.stat.exists when: zsh_dir.stat.exists
- name: install oh my zsh - name: Install oh my zsh
become: true git:
become_user: gianm repo: https://github.com/ohmyzsh/ohmyzsh.git
when: not zsh_dir.stat.exists dest: ~/.oh-my-zsh
shell: sh -c "$(wget https://raw.github.com/ohmyzsh/ohmyzsh/master/tools/install.sh -O -)" depth: 1
- name: Setup .zshrc - name: Setup .zshrc
copy: copy:
src: files/zshrc src: files/zshrc
dest: /home/gianm/.zshrc dest: /home/gianm/.zshrc
owner: gianm mode: 0644
group: gianm
- name: Setups .profile - name: Setups .profile
copy: copy:
src: files/profile src: files/profile
dest: /home/gianm/.profile dest: /home/gianm/.profile
owner: gianm mode: 0644
group: gianm
- name: install nvm - name: install nvm
become: true
become_user: gianm
shell: zsh -c "$(wget https://raw.githubusercontent.com/nvm-sh/nvm/v0.39.1/install.sh -O -)" shell: zsh -c "$(wget https://raw.githubusercontent.com/nvm-sh/nvm/v0.39.1/install.sh -O -)"
args: args:
creates: "{{ ansible_env.HOME }}/.nvm/nvm.sh" creates: "{{ ansible_env.HOME }}/.nvm/nvm.sh"
- name: install node
shell: zsh -c "nvm install --lts"