-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdeveloper_setup.yml
More file actions
54 lines (50 loc) · 1.17 KB
/
developer_setup.yml
File metadata and controls
54 lines (50 loc) · 1.17 KB
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
---
- name: Developer Environment Setup on macOS
hosts: localhost
connection: local
become: false
vars:
brew_packages:
- git
- terraform
- bazel
- go
- python
- kubernetes-cli
- helm
- awscli
- curl
cask_apps:
- visual-studio-code
- cursor
- docker
- postman
tasks:
- name: Ensure Homebrew is installed
shell: |
if ! command -v brew &> /dev/null; then
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"
fi
args:
executable: /bin/bash
- name: Update Homebrew
homebrew:
update_homebrew: yes
- name: Install Homebrew packages
homebrew:
name: "{{ item }}"
state: present
loop: "{{ brew_packages }}"
- name: Install Homebrew Cask apps
homebrew_cask:
name: "{{ item }}"
state: present
loop: "{{ cask_apps }}"
- name: Optionally install Bruno CLI
shell: |
if ! command -v bruno &> /dev/null; then
npm install -g @usebruno/cli
fi
args:
executable: /bin/bash
ignore_errors: yes