nvm installer
This commit is contained in:
parent
e2a7f5e610
commit
a5a55d46c5
22
local.yml
22
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"
|
Loading…
Reference in New Issue
Block a user