Skip to content

Commit dd095b8

Browse files
committed
Add role to that installs zsh + oh-my-zsh
1 parent 07d359a commit dd095b8

5 files changed

Lines changed: 28 additions & 1 deletion

File tree

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1 +1,2 @@
11
vendor
2+
main.retry

ansible.cfg

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
11
[defaults]
2-
roles_path = vendor
2+
roles_path = roles:vendor

main.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@
66

77
roles:
88
- geerlingguy.homebrew
9+
- jamescarr.dotfiles
910

1011
tasks:
1112
- name: Say All Done!
Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
---
2+
- name: Install ZSH
3+
homebrew:
4+
name: zsh
5+
state: latest
6+
7+
- name: Change current user shell
8+
user:
9+
name: "{{ ansible_ssh_user }}"
10+
shell: /bin/zsh
11+
become: yes
12+
13+
- name: Fetch oh-my-zsh
14+
get_url:
15+
url: https://raw.githubusercontent.com/robbyrussell/oh-my-zsh/master/tools/install.sh
16+
dest: /tmp/install-oh-my-zsh.sh
17+
mode: 0755
18+
19+
- name: Install oh-my-zsh
20+
command: zsh /tmp/install-oh-my-zsh.sh
21+
22+

vars/homebrew.yaml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,11 @@
11
homebrew_taps:
22
- caskroom/cask
3+
34
homebrew_installed_packages:
45
- tmux
56
- macvim
7+
68
homebrew_cask_apps:
79
- spotify
810
- iterm2
11+

0 commit comments

Comments
 (0)