From 0c6170483ba3bd189da30b4305276392f161cfe8 Mon Sep 17 00:00:00 2001 From: Gianmarco Pettinato Date: Mon, 27 Dec 2021 14:11:20 +0100 Subject: [PATCH] updated the main shell script --- local.yml | 11 ++++++++--- setup.sh | 4 +--- 2 files changed, 9 insertions(+), 6 deletions(-) diff --git a/local.yml b/local.yml index c11106f..7a271cc 100644 --- a/local.yml +++ b/local.yml @@ -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" \ No newline at end of file + become_user: gianm + shell: source ~/.zshrc && nvm install --lts \ No newline at end of file diff --git a/setup.sh b/setup.sh index adb1ea1..6fec2d8 100644 --- a/setup.sh +++ b/setup.sh @@ -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 \ No newline at end of file +ansible-pull -U https://git.jatus.tech/Jatus/workstation-setup.git -K \ No newline at end of file