added vscode setup

This commit is contained in:
Gianmarco Pettinato 2021-12-24 12:56:04 +01:00
parent b7e2e54816
commit 9b5401015f
2 changed files with 16 additions and 2 deletions

View File

@ -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"

View File

@ -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