diff --git a/local.yml b/local.yml index d9a1474..11a771c 100644 --- a/local.yml +++ b/local.yml @@ -8,6 +8,10 @@ - username: gianm tasks: + - name: add to repository nodejs + become: true + shell: curl -fsSL https://deb.nodesource.com/setup_lts.x | bash - + - name: Set zsh main as shell become: true when: ansible_facts['os_family'] == "Debian" @@ -18,6 +22,7 @@ package: name: - zsh + - nodejs - name: Set zsh main as shell become: true @@ -47,21 +52,9 @@ dest: ~/.zshrc mode: 0644 - - name: Setups .profile + - name: Setup .profile become_user: gianm copy: src: files/profile dest: ~/.profile - mode: 0644 - - - name: install nvm - become_user: gianm - shell: wget -qO- https://raw.githubusercontent.com/nvm-sh/nvm/v0.39.1/install.sh | bash - args: - creates: "{{ ansible_env.HOME }}/.nvm/nvm.sh" - - - name: install node - become_user: gianm - shell: export NVM_DIR="$([ -z "${XDG_CONFIG_HOME-}" ] && printf %s "${HOME}/.nvm" || printf %s "${XDG_CONFIG_HOME}/nvm")" [ -s "$NVM_DIR/nvm.sh" ] && \. "$NVM_DIR/nvm.sh" && nvm install --lts - args: - executable: /usr/bin/zsh \ No newline at end of file + mode: 0644 \ No newline at end of file