From a5a55d46c5f9fffb1e4718bef13707ecc2107aa2 Mon Sep 17 00:00:00 2001 From: Gianmarco Pettinato Date: Sat, 25 Dec 2021 18:14:16 +0100 Subject: [PATCH] nvm installer --- local.yml | 22 +++++++++++----------- 1 file changed, 11 insertions(+), 11 deletions(-) diff --git a/local.yml b/local.yml index 31d4faf..d661577 100644 --- a/local.yml +++ b/local.yml @@ -2,12 +2,6 @@ - hosts: localhost connection: local roles: - - role: devoinc.nvm - nodejs_version: "lts" - become_user: gianm - nvm_commands: - -"nvm install --lts" - - role: gantsign.visual-studio-code become: true users: @@ -23,7 +17,6 @@ become: true package: name: - - git - zsh - name: Set zsh main as shell @@ -40,21 +33,28 @@ msg: "skipping install oh my zsh" when: zsh_dir.stat.exists - - name: Install oh my zsh + - name: install oh my zsh 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: Setup shell env + + - name: Setup .zshrc copy: src: files/zshrc dest: /home/gianm/.zshrc owner: gianm group: gianm - - name: Setup shell env + - name: Setups .profile copy: src: files/profile dest: /home/gianm/.profile owner: gianm group: gianm + + - name: install nvm + become_user: gianm + shell: > + curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.39.1/install.sh | zsh + args: + creates: "{{ ansible_env.HOME }}/.nvm/nvm.sh" \ No newline at end of file