changed nvm command
This commit is contained in:
parent
735094b5d2
commit
5c32eda240
21
local.yml
21
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
|
||||
mode: 0644
|
Loading…
Reference in New Issue
Block a user