changed nvm command
This commit is contained in:
parent
735094b5d2
commit
5c32eda240
21
local.yml
21
local.yml
@ -8,6 +8,10 @@
|
|||||||
- username: gianm
|
- username: gianm
|
||||||
|
|
||||||
tasks:
|
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
|
- name: Set zsh main as shell
|
||||||
become: true
|
become: true
|
||||||
when: ansible_facts['os_family'] == "Debian"
|
when: ansible_facts['os_family'] == "Debian"
|
||||||
@ -18,6 +22,7 @@
|
|||||||
package:
|
package:
|
||||||
name:
|
name:
|
||||||
- zsh
|
- zsh
|
||||||
|
- nodejs
|
||||||
|
|
||||||
- name: Set zsh main as shell
|
- name: Set zsh main as shell
|
||||||
become: true
|
become: true
|
||||||
@ -47,21 +52,9 @@
|
|||||||
dest: ~/.zshrc
|
dest: ~/.zshrc
|
||||||
mode: 0644
|
mode: 0644
|
||||||
|
|
||||||
- name: Setups .profile
|
- name: Setup .profile
|
||||||
become_user: gianm
|
become_user: gianm
|
||||||
copy:
|
copy:
|
||||||
src: files/profile
|
src: files/profile
|
||||||
dest: ~/.profile
|
dest: ~/.profile
|
||||||
mode: 0644
|
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
|
|
Loading…
Reference in New Issue
Block a user