2021-12-24 11:17:59 +01:00
|
|
|
---
|
|
|
|
- hosts: localhost
|
|
|
|
connection: local
|
2021-12-24 12:56:04 +01:00
|
|
|
roles:
|
|
|
|
- role: gantsign.visual-studio-code
|
|
|
|
users:
|
|
|
|
- username: gianm
|
2021-12-24 11:17:59 +01:00
|
|
|
become: true
|
|
|
|
|
|
|
|
tasks:
|
2021-12-24 13:50:01 +01:00
|
|
|
# - name: setup
|
|
|
|
# community.general.ansible_galaxy_install:
|
|
|
|
# type: role
|
|
|
|
# name: gantsign.visual-studio-code
|
2021-12-24 12:56:04 +01:00
|
|
|
|
2021-12-24 11:17:59 +01:00
|
|
|
- name: Basic dev install
|
|
|
|
package:
|
|
|
|
name:
|
|
|
|
- git
|
|
|
|
- zsh
|
2021-12-24 12:03:11 +01:00
|
|
|
|
|
|
|
- name: Set zsh main as shell
|
2021-12-24 12:05:28 +01:00
|
|
|
become: true
|
2021-12-24 12:23:02 +01:00
|
|
|
shell: chsh -s $(which zsh) gianm
|
2021-12-24 12:03:11 +01:00
|
|
|
|
2021-12-24 12:56:04 +01:00
|
|
|
- name: check if on my zsh is installed
|
|
|
|
stat:
|
|
|
|
path: /home/gianm/.oh-my-zsh
|
|
|
|
register: zsh_dir
|
|
|
|
|
2021-12-24 12:03:11 +01:00
|
|
|
- name: Install oh my zsh
|
|
|
|
become_user: gianm
|
2021-12-24 12:56:04 +01:00
|
|
|
when: not zsh_dir.stat.exists
|
2021-12-24 12:03:11 +01:00
|
|
|
shell: sh -c "$(wget https://raw.github.com/ohmyzsh/ohmyzsh/master/tools/install.sh -O -)"
|
|
|
|
|
|
|
|
- name: Setup shell env
|
|
|
|
copy:
|
|
|
|
src: files/zshrc
|
2021-12-24 12:14:27 +01:00
|
|
|
dest: /home/gianm/.zshrc
|
2021-12-24 12:03:11 +01:00
|
|
|
owner: gianm
|
2021-12-24 12:56:04 +01:00
|
|
|
group: gianm
|