-
Notifications
You must be signed in to change notification settings - Fork 0
/
main.yml
153 lines (130 loc) · 3.5 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
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
---
- hosts: all
gather_facts: false
tasks:
- name: Install CLT if required
ansible.builtin.script: install_clt.sh
changed_when: false
- hosts: all
roles:
- geerlingguy.mac.homebrew
- hosts: all
tasks:
- name: brew paths.d
become: yes
ansible.builtin.copy:
dest: /etc/paths.d/brew
content: /opt/homebrew/bin
owner: root
group: wheel
mode: 0644
- name: Tap cask-versions
community.general.homebrew_tap:
name: homebrew/cask-versions
- name: install brew packages
community.general.homebrew:
update_homebrew: true
formula:
- node@18
- htop
- tree
- tmux
- redis
- libpq
- ansible
- bat
- mas
- graphviz
- name: Install Webstorm
community.general.homebrew_cask:
name: webstorm
state: present
- name: Install GitUp
community.general.homebrew_cask:
name: gitup
state: present
- name: Install Battery
community.general.homebrew_cask:
name: battery
state: present
- name: Install Chrome
community.general.homebrew_cask:
name: google-chrome
state: present
# todo doesn't work
# - name: Install OpenVPN
# community.general.homebrew_cask:
# name: openvpn-connect
# state: present
- name: Install Postgres app
community.general.homebrew_cask:
name: postgres-unofficial
state: present
# - name: Install Zoom
# community.general.homebrew_cask:
# name: zoom
# state: present
- name: Install Blender
community.general.homebrew_cask:
name: blender
state: present
- name: Install Maccy
community.general.homebrew_cask:
name: maccy
state: present
- name: Install MonitorControl
community.general.homebrew_cask:
name: monitorcontrol
state: present
- name: Install Tor Browser
community.general.homebrew_cask:
name: tor-browser
state: present
# # todo UTM is probably better
# - name: Install Parallels 18
# community.general.homebrew_cask:
# name: homebrew/cask-versions/parallels18
# state: present
- name: Install Mac App Store applications
community.general.mas:
state: present
id:
- 409183694 # Keynote
- 2121813704 # CleanMyKeyboard
- 2139691919 # Dipper
- 1401007562 # Type to learn
- 441258766 # Magnet
- 411643860 # DaisyDisk
# todo refactor
- name: node paths.d
become: yes
ansible.builtin.copy:
dest: /etc/paths.d/node
content: /opt/homebrew/opt/node@18/bin
owner: root
group: wheel
mode: 0644
- name: libpq paths.d
become: yes
ansible.builtin.copy:
dest: /etc/paths.d/libpq
content: /opt/homebrew/opt/libpq/bin
owner: root
group: wheel
mode: 0644
- name: OhMyZsh
ansible.builtin.git:
repo: 'https://github.com/ohmyzsh/ohmyzsh.git'
depth: 1
dest: /Users/Shared/.oh-my-zsh
- name: .zshrc
ansible.builtin.copy:
src: zshrc.sh
dest: /Users/{{ ansible_user }}/.zshrc
owner: "{{ ansible_user }}"
group: staff
mode: 0640
- name: Configure Defaults
ansible.builtin.script: defaults.sh
changed_when: false
# todo ansible.builtin.reboot