From 3848f48cda06c37c766c36e20e287d3c6af816b9 Mon Sep 17 00:00:00 2001 From: Gianmarco Pettinato Date: Sat, 25 Dec 2021 17:27:14 +0100 Subject: [PATCH] corrected the readme --- README.md | 2 +- local.yml | 24 ++++++++++++++++++------ 2 files changed, 19 insertions(+), 7 deletions(-) diff --git a/README.md b/README.md index d877f1c..bd7568a 100644 --- a/README.md +++ b/README.md @@ -2,4 +2,4 @@ an automated script to setup my workstation with ansible no need to download just run the script -sh -c "$(wget https://git.jatus.tech/Jatus/workstation-setup/raw/branch/main/setup.sh -O -)" \ No newline at end of file +```sh -c "$(wget https://git.jatus.tech/Jatus/workstation-setup/raw/branch/main/setup.sh -O -)"``` diff --git a/local.yml b/local.yml index b3112bb..4d478d2 100644 --- a/local.yml +++ b/local.yml @@ -15,6 +15,11 @@ - username: gianm tasks: + - name: Set zsh main as shell + become: true + when: ansible_facts['os_family'] == "Debian" + shell: apt update + - name: Basic dev install become: true package: @@ -36,9 +41,16 @@ 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 - # copy: - # src: files/zshrc - # dest: /home/gianm/.zshrc - # owner: gianm - # group: gianm + - name: Setup shell env + copy: + src: files/zshrc + dest: /home/gianm/.zshrc + owner: gianm + group: gianm + + - name: Setup shell env + copy: + src: files/profile + dest: /home/gianm/.profile + owner: gianm + group: gianm