Skip to content
This repository has been archived by the owner on Jun 8, 2020. It is now read-only.

Syntax update #3

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
17 changes: 9 additions & 8 deletions oh-my-zsh/ohmyzsh.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,8 @@

- hosts: spcs
user: remy
sudo: True
become: yes
become_method: sudo
connection: ssh # or paramiko

vars:
Expand All @@ -14,27 +15,27 @@
zsh_theme: steeef

tasks:
- name: Install git and zsh
- name: Install git and zsh
apt: name=$item state=latest update_cache=yes
with_items:
- git
- zsh
- git-core

- name: Clone oh-my-zsh repo
git: repo=https://github.com/robbyrussell/oh-my-zsh.git dest=/home/$user/.oh-my-zsh
git: repo=https://github.com/robbyrussell/oh-my-zsh.git dest=/home/{{user}}/.oh-my-zsh

- name: deploy .zshrc
template: src=files/zshrc.in dest=/home/$user/conf/zshrc owner=$user
template: src=files/zshrc.in dest=/home/{{user}}/conf/zshrc owner={{user}}

- name: remove standard zshrc
file: path=/home/$user/.zshrc state=absent
file: path=/home/{{user}}/.zshrc state=absent

- name: Create conf folder in home directory
file: path=/home/$user/conf/ state=directory owner=$user
file: path=/home/{{user}}/conf/ state=directory owner={{user}}

- name: symlink zshrc
file: path=/home/$user/.zshrc src=/home/$user/conf/zshrc state=link owner=$user
file: path=/home/{{user}}/.zshrc src=/home/{{user}}/conf/zshrc state=link owner={{user}}

- name: Set zsh as default shell
user: name=$user shell=/bin/zsh
user: name={{user}} shell=/bin/zsh