diff --git a/local.yml b/local.yml index 365e8b3..c11106f 100644 --- a/local.yml +++ b/local.yml @@ -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" \ No newline at end of file