-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmain.yml
82 lines (73 loc) · 2.65 KB
/
main.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
- name: update homebrew
homebrew: update_homebrew=yes
- name: applications
homebrew_cask: name={{ item }} state=present
with_items:
- 1password
# - amethyst # tiling window manager
# - bitbar
# - drop-to-gif
# - fantastical
- karabiner-elements
- google-drive
# - handbrake
# - insomnia
- monitorcontrol # for brightness control support on external monitors
# - noti # for notifications
- obsidian # awesome note taking app
- rectangle # for window management
- signal
- spotify
- switchaudio-osx
- tor-browser
- uninstallpkg
- vlc
- zappy # better screenshot tool
# the version of bash that ships with macos (3.2.x) at the time
# is super old and breaks the tmux fingers plugin
- name: install a modern version of bash
homebrew: name=bash state=present
# the version of rsync that ships with macos (2.6.9) at the time
# is super old and breaks some software
# https://bayton.org/2018/07/how-to-update-rsync-on-mac-os-high-sierra/
- name: install a modern version of rsync
homebrew: name=rsync state=present
- name: developer applications
homebrew_cask: name={{ item }} state=present
with_items:
- kitty
- postico
- visual-studio-code
- warp
- name: ensure we have a directory for custom key bindings
file: path={{ ansible_env.HOME }}/Library/KeyBindings state=directory mode=700
# copy custom macos keybindings
# symlinking causes issues in some apps
# see https://itectec.com/askdifferent/textedit-key-bindings-modified-in-defaultkeybinding-dict-stopped-working/
- name: copying DefaultKeyBinding for custom key bindings in osx text inputs
copy:
src: KeyBindings/DefaultKeyBinding.dict
dest: "{{ ansible_env.HOME }}/Library/KeyBindings"
mode: 0644
- name: quicklook plugins
homebrew_cask: name={{ item }} state=present
with_items:
- betterzip
- qlmarkdown
# - qlcolorcode # https://github.com/anthonygelibert/QLColorCode/issues/88#issuecomment-927783435
# - qlstephen # https://github.com/whomwah/qlstephen/issues/133
# - quicklook-json # TODO: Verify this works on M1/Apple Silicon
# Used in terminal/other places
- name: install thirdy party fonts
homebrew_cask: name={{ item }} state=present
with_items:
- font-fira-code
- font-hack
# TODO: Alfred offers a first party sync
# However I don't use dropbox (which they recommend), need to investigate further
# - name: symlink alfred configuration
# file:
# src: "{{ role_path }}/files/alfred/prefs.plist"
# dest: "{{ ansible_env.HOME }}/Library/Application Support/Alfred 3/Alfred.alfredpreferences/preferences/features/websearch/prefs.plist"
# state: link
# force: true