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"
when: zsh_dir.stat.exists
- name: install oh my zsh
become: true
become_user: gianm
when: not zsh_dir.stat.exists
shell: sh -c "$(wget https://raw.github.com/ohmyzsh/ohmyzsh/master/tools/install.sh -O -)"
- name: Install oh my zsh
git:
repo: https://github.com/ohmyzsh/ohmyzsh.git
dest: ~/.oh-my-zsh
depth: 1
- name: Setup .zshrc
copy:
src: files/zshrc
dest: /home/gianm/.zshrc
owner: gianm
group: gianm
mode: 0644
- name: Setups .profile
copy:
src: files/profile
dest: /home/gianm/.profile
owner: gianm
group: gianm
mode: 0644
- 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 -)"
args:
creates: "{{ ansible_env.HOME }}/.nvm/nvm.sh"
- name: install node
shell: zsh -c "nvm install --lts"