-
Notifications
You must be signed in to change notification settings - Fork 1
/
local.yml
53 lines (53 loc) · 1.88 KB
/
local.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
- hosts: localhost
connection: local
vars_files:
- vars/pip.yml
vars_prompt:
- name: "hostname"
prompt: "Computer Hostname"
private: no
tasks:
- name: set computer hostname
command: "{{ item }}"
become: yes
with_items:
- scutil --set ComputerName "{{ hostname }}"
- scutil --set HostName "{{ hostname }}"
- scutil --set LocalHostName "{{ hostname }}"
- defaults write /Library/Preferences/SystemConfiguration/com.apple.smb.server NetBIOSName -string "{{ hostname }}"
- name: install homebrew
shell: /bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"
args:
creates: /opt/homebrew/bin/brew
- name: install XQuartz
homebrew_cask: name=xquartz state=installed
- name: install binaries
command: /opt/homebrew/bin/brew bundle --file files/Brewfile
- name: install apps
command: /opt/homebrew/bin/brew bundle --file files/Brewfile.apps
- name: install mas apps
command: /opt/homebrew/bin/brew bundle --file files/Brewfile.mas
- name: accept xcode license
command: xcodebuild -license accept
become: yes
- name: install fonts
command: /opt/homebrew/bin/brew bundle --file files/Brewfile.fonts
- name: install python packages
pip:
name: "{{ python_packages }}"
state: latest
- name: set macos defaults
script: files/.macos
- name: set default shell to homebrew-installed zsh
user:
name: "{{ ansible_env.USER }}"
shell: /opt/homebrew/bin/zsh
become: yes
- name: install nix
shell: /bin/bash -c "$(curl -L https://nixos.org/nix/install)"
args:
creates: /nix/
- name: rustup-init
command: /opt/homebrew/bin/rustup-init --no-modify-path -y
- debug:
msg: "Now just setup DropBox, run 'mackup restore', and reboot"