From 9b5401015f12673d4074e02443e484acd8d2cff8 Mon Sep 17 00:00:00 2001 From: Gianmarco Pettinato Date: Fri, 24 Dec 2021 12:56:04 +0100 Subject: [PATCH] added vscode setup --- files/zshrc | 1 - local.yml | 17 ++++++++++++++++- 2 files changed, 16 insertions(+), 2 deletions(-) diff --git a/files/zshrc b/files/zshrc index a7debe0..c8e0aee 100644 --- a/files/zshrc +++ b/files/zshrc @@ -104,4 +104,3 @@ source ~/.profile #THIS MUST BE AT THE END OF THE FILE FOR SDKMAN TO WORK!!! export SDKMAN_DIR="$HOME/.sdkman" [[ -s "$HOME/.sdkman/bin/sdkman-init.sh" ]] && source "$HOME/.sdkman/bin/sdkman-init.sh" -PROG=tea _CLI_ZSH_AUTOCOMPLETE_HACK=1 source "/home/gianm/.config/tea/autocomplete.zsh" diff --git a/local.yml b/local.yml index 8906c9d..0a5da4b 100644 --- a/local.yml +++ b/local.yml @@ -1,9 +1,18 @@ --- - hosts: localhost connection: local + roles: + - role: gantsign.visual-studio-code + users: + - username: gianm become: true tasks: + - name: setup + community.general.ansible_galaxy_install: + type: role + name: gantsign.visual-studio-code + - name: Basic dev install package: name: @@ -14,8 +23,14 @@ become: true shell: chsh -s $(which zsh) gianm + - name: check if on my zsh is installed + stat: + path: /home/gianm/.oh-my-zsh + register: zsh_dir + - 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 @@ -23,4 +38,4 @@ src: files/zshrc dest: /home/gianm/.zshrc owner: gianm - group: gianm \ No newline at end of file + group: gianm