updated the main shell script

This commit is contained in:
Gianmarco Pettinato 2021-12-27 14:11:20 +01:00
parent 197064f459
commit 0c6170483b
2 changed files with 9 additions and 6 deletions

View File

@ -34,27 +34,32 @@
when: zsh_dir.stat.exists
- name: Install oh my zsh
become_user: gianm
git:
repo: https://github.com/ohmyzsh/ohmyzsh.git
dest: ~/.oh-my-zsh
depth: 1
- name: Setup .zshrc
become_user: gianm
copy:
src: files/zshrc
dest: /home/gianm/.zshrc
dest: ~/.zshrc
mode: 0644
- name: Setups .profile
become_user: gianm
copy:
src: files/profile
dest: /home/gianm/.profile
dest: ~/.profile
mode: 0644
- name: install nvm
become_user: gianm
shell: zsh -c "$(wget https://raw.githubusercontent.com/nvm-sh/nvm/v0.39.1/install.sh -O -)"
args:
creates: "{{ ansible_env.HOME }}/.nvm/nvm.sh"
- name: install node
shell: zsh -c "nvm install --lts"
become_user: gianm
shell: source ~/.zshrc && nvm install --lts

View File

@ -1,6 +1,4 @@
#! bin/bash
wget https://git.jatus.tech/Jatus/workstation-setup/raw/branch/main/requirments.yml
ansible-galaxy install -r requirments.yml
ansible-pull -U https://git.jatus.tech/Jatus/workstation-setup.git
su gianm
nvm install --lts
ansible-pull -U https://git.jatus.tech/Jatus/workstation-setup.git -K