-
Notifications
You must be signed in to change notification settings - Fork 0
/
install-playbook.yml
97 lines (81 loc) · 2.38 KB
/
install-playbook.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
---
- hosts: localhost
become: no
become_user: root
vars:
install_state: present # Override with: --extra-vars "install_state=latest"
tasks:
- name: Install XCode Command Line Tools (Error means already installed)
shell: xcode-select --install
ignore_errors: yes
- name: Use brew bundle to install brew packages in Brewfile
shell: brew bundle
- name: Show Hidden Folders in Finder
shell: defaults write com.apple.finder AppleShowAllFiles YES
tags: macos
- name: Install Oh My ZSH
shell: sh -c "$(curl -fsSL https://raw.githubusercontent.com/robbyrussell/oh-my-zsh/master/tools/install.sh)"
args:
creates: ~/.oh-my-zsh/oh-my-zsh.sh
- name: Grab a copy of Powerline patched fonts
git:
repo: https://github.com/powerline/fonts.git
dest: ~/dotfiles/fonts
- name: Copy Source Code Pro font to ~/Library/Fonts
copy:
src: ~/dotfiles/fonts/SourceCodePro/
dest: ~/Library/Fonts
- name: Grab the you-should-use OhMyZSH Plugin
git:
repo: https://github.com/MichaelAquilina/zsh-you-should-use.git
dest: ~/.oh-my-zsh/custom/plugins/you-should-use
- name: Grab ASDF From git
git:
repo: https://github.com/asdf-vm/asdf.git
dest: ~/.asdf
version: v0.14.1
tags:
- asdf
- name: Grab tpm (Tmux Plugin Manager) From git
git:
repo: https://github.com/tmux-plugins/tpm
dest: ~/.tmux/plugins/tpm
tags:
- tmux
- name: Link files
file:
src: "{{ playbook_dir }}/{{item}}"
dest: "~/.{{item}}"
state: link
force: true
with_items:
- agignore
- zshrc
- tmux.conf
- asdfrc
- gitconfig
- ssh_config
- tmuxinator
- wezterm.lua
tags: link
- name: Link config files
file:
src: "{{ playbook_dir }}/config/{{item}}"
dest: "~/.config/{{item}}"
state: link
force: true
with_items:
- nvim
- "atuin"
tags: link
- file:
src: "{{ playbook_dir }}/ssh_config"
dest: "~/.ssh/config"
state: link
tags: link
- name: Link hooks to .git/hooks
file:
src: "{{ playbook_dir }}/hooks/post-merge"
dest: "{{ playbook_dir }}/.git/hooks/post-merge"
state: link
tags: link